glibc calls more write() than necessary

Mike Frysinger vapier@gentoo.org
Sun Jan 21 21:21:00 GMT 2007


On Sunday 21 January 2007 16:03, Matthieu Lemerre wrote:
> Maybe I wasn't clear enough... My concern is the following one: when a
> stream is line buffered, I think that the flush need to be done only
> at the LAST '\n', not at each one of them.  That way, you flush less,
> you syscall less, and the program run faster.

that is not how the standard works

line buffered means line buffered ... it doesnt mean buffer some lines but not 
others
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070121/98b8f429/attachment.sig>


More information about the Libc-alpha mailing list