Path: utzoo!attcan!uunet!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz (Boyd Roberts) Newsgroups: comp.unix.questions Subject: Re: edit first line of long file Message-ID: <1896@necisa.ho.necisa.oz> Date: 26 Oct 90 00:02:25 GMT References: <568@inews.intel.com> <4597:Oct2321:44:2190@kramden.acf.nyu.edu> <590@inews.intel.com> <10201:Oct2404:23:3890@kramden.acf.nyu.edu> Organization: NEC Information Systems Australia Pty. Ltd. Lines: 18 In article <10201:Oct2404:23:3890@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: > >Huh? *Nothing* is going to run more quickly than cat, and programs that >do any sort of processing are guaranteed to run more slowly. How about >timing these things for yourself? > Don't be stupid. It depends how cat is implemented. I remember being horrified to find that one verison of cat used stdio fread/fwrite. And they were implemented as _two_ nested loops with a getc/putc in the middle. Was that _slow_ or what? Gotta watch out for those `universal affirmitives' :-) Boyd Roberts boyd@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...''