[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Flush stdout more often

From: Bart Robinson <lomew_at_pobox.com>
Date: 2006-02-11 00:44:25 CET

On 2006-2-10 Justin Erenkrantz <justin@erenkrantz.com> wrote:
> On 2/10/06, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
> > I can't imagine that the flush is going to even show up in profiling...
>
> It's an extra syscall for every line of output (imagine redirecting
> stdout to a file!). We've never needed it before...

The output is line-based, so why not play nice and make it
line-buffered? (CVS does this FWIW.)

Note that the extra syscall is only for the less-common case of
writing to a pipe or file. The typical case of writing to a
terminal is already line-buffered by stdio and so doing the
explicit fflush is effectively a no-op (in regards to system
calls).

-- bart

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 11 00:45:25 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.