* You're reading/writing data repeatedly in small chunks. Horrible
use of
disk I/O. Every read is followed by a write, which means every loop
involves
two head seeks, and the reads/writes are much smaller than optimal
for a
burst.
I don't think so. There is caching at many levels: the disk itself,
the OS, and then within REALbasic. At least in theory, you shouldn't
see too much penalty for this use behavior at the RB level.
I tested the posted function and a copy that consolidates the disk I/O and
uses split/join. On Mac you seem to be right, something is intervening to
buffer and fix this and there's only a 10% improvement by consolidating the
disk I/O. On Windows, the speed difference is 2x. Using Filemon.exe on
Windows, it looks like the reads are being buffered, but not the writes.
FWIW, I tend to be on my PC more, hence my hunch....
Daniel L. Taylor
Taylor Design
Computer Consulting & Software Development
[EMAIL PROTECTED]
www.taylor-design.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>