On Sat, Mar 28, 2015 at 5:46 AM, Laurie Alvey <[email protected]> wrote: > Interesting. It's certainly faster on my box (VFP9 SP2 on XP SP3) to create > a 1 Mb string in memory and do one write than to do 1,000,000 calls to > STRTOFILE(<string>, <file>,1). In memory took about 690 ms, the other > method took over 10 secs to do 7000 writes. >
And that's an excellent illustration of why you have to test your attempts at optimization with your code on the target hardware with the amount and type of data you'll be working with. "Ran fine on my system" is an embarassing admission of poor practices. Nothing runs like the Fox! -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cacw6n4vl33ywaq5ltsbuknobmdklyzp-cjf0authnzckobn...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

