mailing list of musl libc
 help / color / mirror / code / Atom feed
* musl size breakdown
@ 2013-06-16  6:25 Rich Felker
  0 siblings, 0 replies; only message in thread
From: Rich Felker @ 2013-06-16  6:25 UTC (permalink / raw)
  To: musl

Completely un-rigorous at the moment, but I thought these figures may
be interesting. All size contributions are approximations based on
my i386 build with -O3 and the size -t command, converted to
percentages of the whole library size via quick mental math.

20% math (including complex)
15% iconv
10% stdio
10% regex/glob
10% crypt
5% network (esp. dns)
4% unicode tables (ctype)
3% string functions
3% threads
2% numeric parser/converters
2% time handling
1% malloc
1% unistd

That leaves about 14% unaccounted for, presumably in lots of small
stuff that just adds up. It would be interesting to see how these
percentages compare with other implementations, and how users react to
them and whether they're perceived as justified.

With the further iconv features that are planned for the future, as
well as corrections to the complex math code, math and iconv will have
an interesting battle ahead to claim the size title. Math has an even
greater chance of keeping the title if we consider non-i387 archs
where most math functions involve a great deal of code rather than
tiny asm implementations.

Rich




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-16  6:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-16  6:25 musl size breakdown Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).