On errno
Luigi Rizzo
rizzo at iet.unipi.it
Mon Mar 30 23:50:43 PDT 2009
On Tue, Mar 31, 2009 at 06:46:27AM +0000, Poul-Henning Kamp wrote:
> In message <20090331064959.GA3516 at 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
More information about the freebsd-arch
mailing list