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 being polite to other programs... :-) I'd still simply grab just as much memory I can use. If speed is of the essence, as you said in your requirements, then the user will probably also know to let the machine alone (tell him!) and not have too many other progs trying to get memory at the same time. If notn, then speed is not that essential, after all. So I'd still go for as much memory as I can get and read in the entire file. If that can't be done (not enough space): Ultimately, it will then be the read operations that slow everything down. Now, considering that iob.fmul & fstrg use D2 to indicate how many bytes they should get, and since D2 only can be word sized, you can, at most, read $fffff bytes in one go. If nothing else, I'd use that as my buffer size.... Wolfgang ----------------- www.wlenerz.com
