Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!henry
From: henry@utzoo.UUCP (Henry Spencer)
Newsgroups: net.unix-wizards
Subject: Re: stdio buffering considered harmful
Message-ID: <3126@utzoo.UUCP>
Date: Tue, 2-Aug-83 18:55:27 EDT
Article-I.D.:    utzoo.3126
Posted: Tue Aug  2 18:55:27 1983
Date-Received: Tue, 2-Aug-83 18:55:27 EDT
References: <3610@sri-arpa.UUCP>
Organization: U of Toronto Zoology
Lines: 12

At one point, I believe the folks at Duke implemented an alternative
to normal stdio buffering:  all characters supplied by a single (e.g.)
printf call went out as a single write, but there was no buffering
across calls.  They did this mostly to get the performance of big
writes to ttys without the complexities of trying to guess when to
flush the buffers, but they claimed that it bought most of the speed
of full buffering without the annoyances.  I don't believe they did
this on pipes, but it might be worth considering.  Any notions how
much of a performance penalty it would involve?
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry