Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CLR and VFP
Message
From
04/09/2000 17:05:42
 
 
To
04/09/2000 17:01:05
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00409695
Message ID:
00412308
Views:
24
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform