Re: Coalescing pipe allocation

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Tue, 03 Feb 2004 18:00:23 +0100
Robert Watson <rwatson_at_FreeBSD.org> writes:
> Well, I don't know so much about the portability issues, but I can say
> that it seems silly to incur the costs if few applications take advantage
> of the feature.  Especially if the cost can be defered until the feature
> is exercised.  I have some local patches that defer all pipe buffer
> allocation until a particular direction is first used, but this has some
> potential downsides, including increasing the chances that a lack of
> resources is discovered on first-use, rather than on allocation of the
> pipe (which makes it a lot harder to write robust applications).

This is IMHO a lesser evil than the current behaviour, and there is
always the option of blocking if memory can't be allocated right away.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Tue Feb 03 2004 - 08:01:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC