Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISSUE: uses LOOP for faster loop cycles
Message
From
01/05/2005 12:41:47
 
 
To
01/05/2005 08:42:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01009925
Message ID:
01010012
Views:
21
<snip>
>If I have a recurring loop taking considerable amounts of runtime,
>I can optimize this loop (as we both probably do) with "loop".
>But even the time spent optimizing the speed of calling UDF / methods
>with a few parameters would probably better for the speed of the whole app.
>
>I think such an optimization would be a non-optimal use of the resources of the VFPT -
>other optimizations could make a greater difference to the "usual" app.
>
>regards
>
>thomas

Hi Thomas,

I Agree.

I have intentional to show a possible improvement for the simple loops,
and only to say that it is possible to make it with the compiler.

As an example,
the optimization of the
- use of the string variables into VFP command.
? LEN(m.String)
? LEN(@m.String)  && don't copy the string into the VM buffer
- to change a property's value using the same property's value
object.property= fn(object.property) && scan object's property list 1 time only
and many others are more useful.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform