Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2009 08:55:48 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Daniel Eischen <deischen@freebsd.org>, FreeBSD Arch <arch@freebsd.org>, Tim Kientzle <kientzle@freebsd.org>, Marcel Moolenaar <xcllnt@mac.com>
Subject:   Re: On errno
Message-ID:  <20090331065548.GA3851@onelab2.iet.unipi.it>
In-Reply-To: <96314.1238481987@critter.freebsd.dk>
References:  <20090331064959.GA3516@onelab2.iet.unipi.it> <96314.1238481987@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 31, 2009 at 06:46:27AM +0000, Poul-Henning Kamp wrote:
> In message <20090331064959.GA3516@onelab2.iet.unipi.it>, Luigi Rizzo writes:
> 
> >we are probably digressing but printf in glibc has specifiers to
> >indicate which argument you want to use for each format.
> >
> >http://www.gnu.org/software/hello/manual/libc/Output-Conversion-Syntax.html
> >
> >I suppose this takes an extra pass over the format string to collect
> >the proper type info for all arguments, so it is not
> >not a dramatic change in the implementation of *printf.
> 
> Yeah, we have that crap too, and you can see how messy and slow our
> printf became as a result in SVN.

I have never run performance tests of printf, but it woudld be
definitely interesting to figure out how expensive is the parsing
of the format specifiers.

cheers
luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090331065548.GA3851>