From: Paul Brannan Date: 2003-04-05T06:03:49+09:00 Subject: Re: Newbie question:read file speed On Sat, Apr 05, 2003 at 03:26:01AM +0900, Dan Sugalski wrote: > Perl essentially finds the C RTL's underlying buffers and memcpy's > the data out of it, twiddling the internal pointers and counts as it > goes. Can't get much faster than that, short of having the system do > a DMA read right into a buffer that doesn't have to move. I would expect that using read/write directly instead of going through the C interface would be faster and more portable than going under the hood of the C library. If a particular system does not have read/write, then it can be simulated using fread/fwrite with buffering disabled. Or am I missing something completely? Paul