Quite. I've just rewritten my test code using (1) REPLICATE(<char>,1000000) followed by STRTOFILE and (2) 1,000,000 sequential calls to FWRITE(<handle>, <char>). REPLICATE took 47 ms and FWRITE took 1.047 secs.
Laurie On 28 March 2015 at 09:56, Allen <pro...@gatwicksoftware.com> wrote: > It seems the writer was referring to Java so its not really relevant to > the real word :) > Al > > -----Original Message----- 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. > > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com 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/CAMvTR9edsPgmDjosd+m2nYmsnew_YsWbf=rxhh7smskbttb...@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.