Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ISSUE: uses LOOP for faster loop cycles
Message
De
01/05/2005 12:41:47
 
 
À
01/05/2005 08:42:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01009925
Message ID:
01010012
Vues:
22
<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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform