Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Side by side comparison (strings & local data)
Message
De
24/12/2003 04:33:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
00861648
Message ID:
00861861
Vues:
25
>>However I never found VFP's string handling fast. It uses things like
>>handles to memory locations. If you do like in your code :
>
lcXML = lcXML + someaddition
>>Adding over and over to same variable is not optimized at all. However
>>that code might be optimized in different ways (in VFP there are at least
>>3 ways:).
>
>Actually, there is some optimization going on in that case. Unfortunately, it can cause the code to break in recursive cases. To avoid the optimization _IF_ you are hitting this problem, change it to read:
>
>
lcXML = "" + lcXML + someaddition
Hi Garret,
OK making it to work slower I accept it's somewhat optimized :) What I meant was it's not optimized well enough to work with large strings and continously adding to an initial string. Within the VFP's aspect it's quite reasonable. I always wished if there were a way to thread a string like a char* in C (actually it might be with use of some sys() functions which I couldn't yet try to find out how they work).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform