Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Demo App How?
Message
De
04/07/2007 02:47:31
Christoph Krapp
Tiefkühldienst Gmbh
Lohne, Allemagne
 
 
À
03/07/2007 02:51:14
Christoph Krapp
Tiefkühldienst Gmbh
Lohne, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
VFP Compiler for .NET
Titre:
Divers
Thread ID:
01237023
Message ID:
01237692
Vues:
14
Here is a small follow up from Samuel which I recieved via Email.

--- snip
Glad to hear you could perform your test. If you want to go a little further you could achieve near native code speed if you use strong typing for m.lncount.

Here would be the snippet:
? "Please wait..."
?

TLOCAL lnCount as Integer
FOR i = 1 TO 5
	Local lnStart
	lnStart = Seconds()
	lnCount = 0
	Do While m.lnCount < 5000000
		m.lnCount = m.lnCount + 1
	EndDo
	? i, Seconds()-lnstart, "sec. for 5,000,000 iteration"
ENDFOR
? "Ready"
In our test machine it gives:
Please wait...
{0}
 1 0.0625 sec. for 5,000,000 iteration
 2 0.015625 sec. for 5,000,000 iteration
 3 0.015625 sec. for 5,000,000 iteration
 4 0.015625 sec. for 5,000,000 iteration
 5 0.015625 sec. for 5,000,000 iteration Ready
That´s speed.
Christoph
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform