Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CHRTRAN and remove characters
Message
 
 
À
14/10/2004 13:40:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00950654
Message ID:
00951485
Vues:
8
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform