home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!inmos!titan.inmos.co.uk!news
- From: conor@lion.inmos.co.uk (Conor O'Neill)
- Subject: UNIX fseek time (was Re: Comparison of Alpha, MIPS and PA-RISC-II wanted)
- Message-ID: <1992Dec24.112422.12434@titan.inmos.co.uk>
- Sender: news@titan.inmos.co.uk
- Organization: INMOS Limited, Bristol, UK
- References: <1992Dec20.164501.291@rlgsc.com> <1992Dec21.194657.759@qb.rhein-main.de> <fW0DHHa@quack.sac.ca.us>
- Date: Thu, 24 Dec 1992 11:24:22 GMT
- Lines: 22
-
- In article <fW0DHHa@quack.sac.ca.us> dfox@quack.sac.ca.us (David Fox) writes:
- >
- >>Honestly it's the definition of IO that's missing here. C/UNIX
- >>have standardized on NOT sequential but flat direct-access files
- >>for the filesystem and sequential access for pipes, some devices,
- >>input format for most system commands, etc.
- >
- >That's an interesting point. I am not an expert in Unix file access
- >but I'd guess that Unix has standardized on both sequential
- >and flat direct-access files, and that sequential access is just a
- >special case of direct access: read so many bytes sequentially from
- >a randomly-accessible point in a file. Or, it has standardized on
- >sequential file access, and that direct access is a special case, using
- >the fseek() library call.
-
- But, given that 'fseek' is incredibly slow on most Unix systems,
- one could almost assume that Unix doesn't support random-access files.
-
- ---
- Conor O'Neill, Software Group, INMOS Ltd., UK.
- UK: conor@inmos.co.uk US: conor@inmos.com
- "It's state-of-the-art" "But it doesn't work!" "That is the state-of-the-art".
-