mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: musl size breakdown
Date: Sun, 16 Jun 2013 02:25:07 -0400	[thread overview]
Message-ID: <20130616062507.GA19067@brightrain.aerifal.cx> (raw)

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




                 reply	other threads:[~2013-06-16  6:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130616062507.GA19067@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).