why is fprintf(stderr,) slow?

Henry Spencer henry at utzoo.UUCP
Wed Aug 27 06:47:43 AEST 1986


> > Standard error is unbuffered, eg, one char at a time, so it makes one
> > write system call per character, hence its slowness.
>                     ^^^^^^^^^^^^^
> 
> Surely you mean "per call".

It *ought* to be "per call".  On many systems, in *fact* it is "per character".
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,decvax,pyramid}!utzoo!henry



More information about the Comp.unix mailing list