Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ can speed up native VFP strings command ?
Message
De
21/11/2003 05:40:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00851950
Message ID:
00852242
Vues:
8
Hi David,

---------
Your two requests of the functions are not exactly equivalent.

occurs() must always scan the entire string to find and count the total number of occurances in the target string.

at(,,n) can stop its scan of the string as soon as it finds the Nth occurance.
----------

I known this, but if you put MAXOCCURRENCE on Nth occurance parameters,
AT() must always scan the entire string, except the right residual.

With AT(,,VFPSTRINGLENGHTLIMIT) the job of AT() is superior, because for every found occurrence must verify if it is that one tried.

------
If you are unhappy with the performance of any given Visual FoxPro string function, there are two articles on my website showing how you can call C++ code from Visual FoxPro. Both examples perform the task between 2 times as fast as Visual FoxPro and several orders of magnitude faster than Visual FoxPro.
------

Thanks David, I go to see immediately.

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform