[comp.sys.amiga.tech] Optimal Buffer size in C rtl

iwm@ic.ac.uk (Ian Moor) (07/12/89)

I have cobbled together a minimal C runtime library (enough to get uudecode
running) using PDC and A68k, mostly in C. It is based mainly on what little
I know about the Unix C library. It uses buffers and does Read or Write when
the buffers need filling/Flushing. What I would like to know is what effect 
the buffer size (and hence the size of Amiga DOS requests) is. Obviously
it should be a multiple of block size, but do big reads slow down
the disk ? Do big writes result in contiguous files  that read faster ?
Should I buffer at all or rely on DOS buffering ?

Please dont ask for copies -- when its ready I'll post to comp.{sources|binaries}.amiga

--
Ian W Moor
  UUCP: uunet!mcvax!ukc!icdoc!iwm     
  ARPA: iwm@doc.ic.ac.uk
  JANET: iwm@uk.ac.ic.doc
           
 Department of Computing   We don't need no documentation,
 Imperial College.         We don't need no source control,
 180 Queensgate            No dark sarcasm in the boardroom,
 London SW7 UK.            Manager! leave those programmers alone!