This is the mail archive of the
mailing list for the glibc project.
Re: Wish for 2002 ...
James Antill <firstname.lastname@example.org> writes:
> Major snip of the Cc lines...
> email@example.com (Thomas Bushnell, BSG) writes:
> > Linus claimed to have something approaching "hard data" for the
> > proposition that adding functions to the library is inherently bad,
> > but he seems to have begged off of the request to tell me where I
> > could read more about it.
> Well it's fairly easy to do a simple benchmark of how much time glibc
> is taking to startup, take two /bin/true programs one in C and calls
> glibc exit() (linked static and strip'd) and the other in nasm from
Right, but we don't know whether this is because it has more
So, add two small functions to your library, and see what happens to
the startup cost; that's the relevant metric.
And moreover, if the actual problem is that it's slower to mmap a
large file than a small one, that's a kernel bug; there is no inherent
reason why it should be any slower.