Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little problem
Message
De
24/01/2004 01:53:51
 
 
À
23/01/2004 14:34:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00869802
Message ID:
00870210
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform