Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP COM Utility released
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00208390
Message ID:
00213150
Views:
88
>If I rember the thread correctly, it is a Windows stack issue... if you are appending small strings to a large string, the more appends you make, and the larger the 'apendie' gets the slower things go. Ricks testing show that the throughput was much better to build the large string to a file and then bring the file into memory as one long string.

Heap, but yeah, pretty much correct <s>...

The deal is once you reach a certain string size (which depends on available memory) Windows starts paging - at that point performance gets REALLY bad.

What happens is that the decrease in performance is exponential. Performance
is excellent until you hit about 100k. Increasing 100k to 1meg will take
80 - 100 times longer than 100k for example. Going to 10 megs - I never
got it to finish <s>...

If you know your strings will be large (even if they're not so large - anything
over 25k in my tests) its faster to write output to file and then read the file back into a string with FILETOSTR when you're done.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform