From: matz@... (Yukihiro Matsumoto) Date: 2001-09-25T16:40:48+09:00 Subject: [ruby-talk:21662] Re: Patch & method proposal Hi, In message "[ruby-talk:21612] Patch & method proposal" on 01/09/24, "Aristarkh A Zagorodnikov" writes: | After some digging around I discovered that using IO.sysread and |IO.syswrite is faster that IO.read and IO.syswrite, especially if you know |the size before. Although, mutiple calls to IO.seek, which uses fseek(3) |shifts internal buffering pointers, so IO.sysread is no longer usable. I |think that for complete system-level files we should have interface to |descriptor-based lseek(2) along with already existing seek. I'm not sure, |though that mixing different seeking methods is a good idea, but I propose |the following patch to io.c: The name 'sysseek' sounds interesting. And one more tip: Use unified diff (diff -u) to atract me. The other diff format (or whole code is even worse) tend to be missed. matz.