From: Robert Klemme Date: 2003-04-07T16:47:39+09:00 Subject: Re: Newbie question:read file speed "ts" schrieb im Newsbeitrag news:200304051149.h35Bnw421543@moulon.inra.fr... > >>>>> "P" == Paul Brannan writes: > > P> I would expect that using read/write directly instead of going through > P> the C interface would be faster and more portable than going under the > P> hood of the C library. If a particular system does not have read/write, > P> then it can be simulated using fread/fwrite with buffering disabled. > > If you use read/write you have to manage a buffer, why do you want to > manage a buffer when you can use the internal buffer used by the C > library. Maybe because it's more portable? If you have to rely on internals of a lib that may change then you might be better off to memory map a file yourself and do the buffer management yourself, too. Just guessing since I'm no OS internals hacker. Regards robert