Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHRTRAN and remove characters
Message
 
 
To
14/10/2004 13:40:38
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00950654
Message ID:
00951485
Views:
7
Considering that the second and third are in the "normal world" constrained to being the set of one instance of each possible characters, 256 for ASCII, your test is totally absurd.

It's also an inaccurate measure of performance of chrtran() because you've mixed the replicate() time into the benchmark.

>run this:
>
>CLEAR
>SET ESCAPE ON
>FOR n=12 TO 24
>   lcStr = SPACE(2^n-32)
>? 'lenght',LEN(lcStr)
>    ltStart = seconds()
>    lcX = chrtran( replicate( '*',  2^n-32), lcStr , lcStr )
>?? seconds() - ltStart
>next
>
>with a 256K string you have to kill the process.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform