Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding grids REALLY slows down form load time
Message
From
24/11/2001 13:55:55
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, United States
 
 
To
23/11/2001 14:54:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00585206
Message ID:
00585411
Views:
21
>I have a fairly complex form - allowing client to slice/dice/display data in multiple arrangements.
>
>It is laid out using a pageframe with 10 pages.
>
>On most pages I have a single grid, but on two I have 8 small grids each.
>
>As I've 'built-up' the form, I've tried to carefully watched the load times.
>
>With no grids, the form will load in approx 10sec (I'm doing A LOT of data prep on the way in)(1.8ghz with 512meg Dell) . Adding the 24 grids pushes the load time to 35secs. If I add them incrementally I'll see the load time increase incrementally. Grid recordsourcetype is set as alias - many of the grid access the same dbf, just changing order of columns, etc.
>
>What should I look for as I try to finetune the load time - what is occuring as each of those grids is established that eats up all that time?

Steve,
What you're doing if awfully nice (giving them everything they could possibly want...) Besides following Mike's advice (delayed instantiation) you could possibly ask your users which grids of data dicing they actually do use repeatedly. Those that are used infrequently could be moved to separate modal forms and called from your main form by the user. Those that only a very few users use frequently following the delayed instantiation would be the best route.
Gil Munk


"If a nation expects to be ignorant and free, it expects what never was and never will be." - Thomas Jefferson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform