Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little problem
Message
From
24/01/2004 01:53:51
 
 
To
23/01/2004 14:34:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00869802
Message ID:
00870210
Views:
12
Hi Fabio,
>in order to improve the speed of opening of the form
>in VFP8 ? This is the only meaningful increase of speed on VFP8.

Try out object creation, but not into a single var but into
an array or into different object handles, like
function createst(tcObjClass, tnOften)
local laObj[m.tnOften], lnRun, lnTime1, lnTime2, lnTime3
lnTime1 = seconds()
for lnRun = 1 to m.tnOften
  laObj[m.lnRun] = createobject(m.tcObjClass)
next
lnTime2 = seconds()
*-- measure destruction separate!
laObj = ,f,
lnTime3 = seconds()
vfp8 runs ***a lot*** better, if there are already quite a few
objects instantiated. Think of complex business apps, where each form
will genereate a couple of hundred controls: screen controls on different
pages, business objects, data objects and so on, and then imagine the app
running with a few of those non modal form open.
Another dimension to measure "scalability" in.

Personally I think the performance behaviour is now much better balanced,
even if vfp8 is slower in object creation whith no objects previously
created (as compared to vfp6).

my 0.02 EUR

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform