Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: RFC: --as-needed to default LDFLAGS
Date: Sat, 31 May 2008 19:24:39
In Reply to: Re: [gentoo-dev] RFC: --as-needed to default LDFLAGS (Was: RFC: Should preserve-libs be enabled by default?) by Brian Harring
1 [Answering to some random message in this long thread.]
3 >>>>> On Sat, 31 May 2008, Brian Harring wrote:
5 > So... folks have pointed out a benefit to using --as-needed.
6 > The benefit itself doesn't seem particularly in dispute, analyze
7 > the fallout from it- if the best that is offered is "the spec says
8 > otherwise", screw the spec frankly- a .01% breakage w/ 99.99% pkgs
9 > getting a positive gain is a strong argument for doing exemptions
10 > where needed.
12 Speaking about statistics: Either I have missed it, or so far nobody
13 has presented any solid numbers showing what the benefit of
14 --as-needed in terms of memory usage or program startup time is.
16 Could someone please show this comparison for some common programs?
18 I've just done this for Emacs (22.2-r2), virtual set size directly
19 after startup is 25280 and 25276 kB, for Emacs built without and with
20 --as-needed, respectively (resident set size is 14412 and 14396 kB).
21 I don't see any difference in startup time.
23 But maybe Emacs is an uncommon application, or I am looking for the
24 wrong things? Could one of the experts please shed some light on this?
26 Ulrich
27 --
28 gentoo-dev@l.g.o mailing list