Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding grids REALLY slows down form load time
Message
De
24/11/2001 13:55:55
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
 
 
À
23/11/2001 14:54:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00585206
Message ID:
00585411
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform