Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Practices
Message
From
09/02/2013 13:48:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/02/2013 12:08:47
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01565478
Message ID:
01565636
Views:
123
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform