Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best Practices
Message
De
09/02/2013 13:48:46
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
08/02/2013 12:08:47
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01565478
Message ID:
01565636
Vues:
125
>>Yes, I've found NEWOBJECT is a LOT slower. If it's in a loop, or needs to be called from any of they Dynamic* stuff in a grid you'll want to stay away from it.
>
>Thanks. Good to know this cause I actually have code calling newobject in a small scan loop. Currently I don't have any issues with it, however, I'm curious to know if changing it will get better performance.

Both set classlib and newobject have to open a file, and to find it first. Set classlib, however, keeps that file open, so when you do createobject(), the overhead (search for the file, open it) is nearly zero.

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