John,
Unix buffered device drivers tend to use either 4096 or 8192 as the buffer
size.
MacOS likes to limit chunks of things to 32K, so you'd probably want to
limit your Mac-based I/O to that size.
My off-the-cuff two cents.
-- Larry
>Can someone please explain why 2^12 is seen so often as the chunk size in
>perl scripts? Is there some UNIX reason for this number that really
>doesn't figure in the Mac environment? I find it more useful to read as
>large a chunk as the memory will sensibly allow. Do I lose anything by
>reading in chunks of say 100K?
>
> while (sysread FILE, $_, 4096) {
> s~x~y~g;
> print;
> }
>
>JD
--
Regards, Larry F. Allen-Tonar <mailto:[EMAIL PROTECTED]> +1 760/746-6464 (voice)
Software/Firmware Designer
P.O. Box 463072
Escondido, CA 92046-3072
"Futuaris nisi irrisus ridebis.", Carlton in _The Road to Mars_ by Eric Idle