Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a simple FLL
Message
From
21/09/2006 01:00:28
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01154766
Message ID:
01155813
Views:
37
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform