Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CLR and VFP
Message
De
04/09/2000 17:05:42
 
 
À
04/09/2000 17:01:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00409695
Message ID:
00412308
Vues:
23
>>Careful, Mike.
>
>Does that mean you want to bet too? :-)
>
>>EVAL is only about 10% faster when referencing an Object's property vs. using a macro.
>
>Eval() has nothing to do with it, its the Named expression versus a Macro to store a value to a variable.
>
>>STORE value TO EVAL("oObject."+cProp)
>
>Wouldn't it be faster this way:
>
>STORE value TO ("oObject."+cProp)

Whoops, that's what I did (using EVAL() in the STORE command gets you an error about using an array as a function or something like that). Anyways, a loop of 1 million takes 37.805 seconds for the &, and 33.868 for the named expression.

Same million passes for a variable were 6.149 for the &, and 2.604 for the EVAL().
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform