Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
M. performance
Message
 
 
À
23/04/2002 12:34:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00647967
Message ID:
00648267
Vues:
31
>Thanks Nadya,
>I still think it is negligible difference even at 10 million iterations on Win 95 (did not mention processor) considering the benefits. Check out my post on my tests I only checked out 500,000, 1,000,000 and 1,500,000, but results still do not convince me that I am unduely slowing down my applications. I know that after some time has passed, I can go back and look at some code that I wrote and it is easier to follow using m. to reference variables and Alias.fieldname to reference fields. Old habits of an oldtimer I guess;) Perhaps a holdover from the days of scatter memvar.
>
>Elmer

Try the same test but using function instead of value. My test is still running, so I probably will have to kill it... :)

Ok, I killed it and ran this test: (first time with date() function)
local i, ab, lnSec
lnSec =seconds()
for i=1 to 100000
    ab=datetime()
next
?seconds()- m.lnSec     
clear all
lnSec =seconds()
for i=1 to 100000
    m.ab=datetime()
next
?seconds()- m.lnSec
First test: 11.881 vs. 11.900
Second test 22.714 vs. 23.472
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform