Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: BUFSIZ-related pessimization in fvwrite.c
To:
"Todd C. Miller" <millert@openbsd.org>
Cc:
enh <enh@google.com>, OpenBSD Tech <tech@openbsd.org>
Date:
Sat, 27 Apr 2024 09:55:26 +0200

Download raw body.

Thread
On Fri, Apr 26, 2024 at 07:06:23PM -0600, Todd C. Miller wrote:
> On Fri, 26 Apr 2024 17:05:51 -0600, Todd C. Miller wrote:
> 
> > I see no reason not to do this, short writes are handled gracefully.
> > I'm not aware of any hard requirement to do buffered writes in
> > multiples of the buffer size.  This may just be stdio trying to do
> > writes in a multiple of the optimal I/O block size (st_blksize).
> 
> Here's a diff relative to our fvwrite.c.

ok tb