Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slow form
Message
De
29/11/2001 14:57:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
29/11/2001 05:16:59
Paul Robinshaw
Silkworm Technologies Limited
Macclesfield, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00587370
Message ID:
00587687
Vues:
24
>Hi All,
>
>I'm attempting to find bottlenecks in a form that's terminally slow to load.
>
>Here're the things that I know are wrong:
>
>1. Too many controls on the form.
>2. Many tables and views being opened in the DE.
>3. I suspect things like refresh is being called many times.
>
>In the long term, I know the form needs redesigning either with less controls or less tables & views or by instantiating things later.
>
>What I want to do immediately is inspect what's being opened in the DE. Has anyone got any ideas about tactics to investigate what's happening in the DE?

Just a brief check: do all of your views have .NoDataOnLoad=.t.? Just one view pulling from a bigger table, specially if it has a join, could create a substantial drag.

Another thing I noticed with some frameworks is a long .init for controls based on a connection with the data dictionary - each one seems to require several lookups (to the same record). Some frameworks have a builder which allows for moving some (or all) of these things into properties of the controls, which then lose most of the connection with the data dictionary, but then that can be rebuilt.

Yet another thing are the unnecessary refreshes which may happen even before the form shows - I've seen dozens of those, and they have also added substantial time to the instantiation of the form (not in the strictest of the meanings - form is instantiated, it's the activate where this happens). Some of these refreshes may have been necessary in VFP3, but there's no need for it now.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform