Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Concat and XML
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640419
Message ID:
00641252
Views:
16
>VFP string manipulation is as fast as the underlying C++ code that implements it.

Agree.

>The only time is slows down at all and where you'd want to resort to using file I/O is when strings are nearing the physical memory size. Once strings get that big you end up swapping virtual memory and preformance drops into the mud.
>If you are working with strings that are up through a couple of megabytes in size you are better off just using string operations.

I think that Cetin is right. The memory reallocation while string concatenation is a common problem for all strings realizations (VFP, MFC, VB etc.) In case of creating large string by appending a small substrings, sequential output to file will be significantly faster. Don't remember exactly, but speed difference of creating a 3 Mb XML (with a 128 MB RAM) may be about 10 times or even more.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform