Re: [ql-users] efficient buffer size

2003-06-21 Thread Wolfgang Lenerz
On 21 Jun 2003, at 2:41, P Witte wrote: (...) Yes, that is understood. It is in situations where the whole file cannot be read at once, Im thinking about. (Besides, on a multitasking machine it is probably not very polite to grab huge buffers ;) (...) Oh well, if you start worrying about

Re: [ql-users] efficient buffer size

2003-06-21 Thread Lau
P Witte wrote: snip As far as I know, nothing my program does should be affected by the size of the buffer, apart from filling it in the first place. So my findings would seem to indicate that a buffer size of between 256 bytes! and 1k are optimal for this kind of thing. This is strange enough,

Re: [ql-users] efficient buffer size

2003-06-21 Thread ZN
On 6/21/2003 at 11:35 PM Lau wrote: Back to my earlier mention of caching... hard drives and their controllers do caching as well. I'm not certain if they do read-ahead caching. In short, yes. Even older IDE drives with sufficient buffer memory at least attempt to always read in the whole