From: Gavin Sinclair Date: 2003-04-04T19:25:36+09:00 Subject: Re: Newbie question:read file speed On Friday, April 4, 2003, 7:37:49 PM, ts wrote: >>>>>> "G" == Gavin Sinclair writes: G>> And why is such evilness even necessary, given that the C IO libraries G>> should already be as fast as possible? > If you work directly with the buffer associated with the IO, this can be > faster than call to the IO libraries. But surely, for the operations that matter to Ruby (say "read" and "write"), the overhead of *calling* C's IO library must be - what - 1E-9 seconds? If the libraries are fast enough for every other C program, why are they not fast enough for Perl - just another C program? Or is it more than just "read" and "write" that's at stake here? Gavin