Article View: comp.sys.amiga.tech
Article #453Optimal Buffer size in C rtl
From: Ian Moor
Date: Tue, 11 Jul 1989 19:24
Date: Tue, 11 Jul 1989 19:24
21 lines
1472 bytes
1472 bytes
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!
Technical Details
Message-ID:
<IWM.89Jul11202445@amvax5.ic.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!icdoc!tgould!iwmShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcvax!ukc!icdoc!tgould!iwm From: iwm@ic.ac.uk (Ian Moor) Newsgroups: comp.sys.amiga.tech Subject: Optimal Buffer size in C rtl Message-ID: <IWM.89Jul11202445@amvax5.ic.ac.uk> Date: 11 Jul 89 19:24:45 GMT Sender: news@doc.ic.ac.uk Distribution: comp Organization: Dept. of Computing, Imperial College Lines: 21 Posting-Front-End: GNU Emacs 18.45.10 of Tue Jan 12 1988 on amvax5 (berkeley-unix)