Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a simple FLL
Message
De
21/09/2006 01:00:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01154766
Message ID:
01155813
Vues:
43
>Thomas,
>
>The relative performance difference is still the same if shorter strings are escaped.
As the "lcEscape = replicate( "%", lnLength / 2 * 3 )" is included as well as the calling overhead of the parameters I do believe the factor between both measurements will be different if you are repeating the call a couply of thousand times for smaller strings. If the source string length is more in the range of 50 - 200, Substr() should be faster.

>And it really shows the power of being able to just run a pointer from one end of the string to the other instead of making some function call to to extract one character at a time.

No doubt about that - I think that a combination of very high level language like vfp or python with the option to code critical parts in C is very hard to beat - if you code in each environment to the particular strength<g>.

>Also this escape obfuscation would only annoy a script kiddie for a moment or two that it would take to turn it back into readable Java. *s*
<g>

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform