ld flag that gives ~40% startup time boost
diablod3 at gmail.com
Fri Jun 23 01:38:00 BST 2006
On Thursday 22 June 2006 19:01, John Richard Moser wrote:
> Patrick McFarland wrote:
> > On Thursday 22 June 2006 17:09, John Richard Moser wrote:
> >> Scott James Remnant wrote:
> >>> On Thu, 2006-06-22 at 21:31 +0100, James Laver wrote:
> >>>> On a sidenote, I'm rather fond of -O3 where it works (sqlite, for
> >>>> example), but i typically go -O2 for most of my compiles.
> >>> -O7 gives the best gains, obviously.
> >> I dunno, libpng seems to favor -O99...
> >> -O3 does things that make binaries load and run slower sometimes, but
> >> under some conditions makes them faster. Among other things I think it
> >> unrolls loops (which can cause excessive page faults during looping).
> > Which makes an interesting intersection with -Os which goes for smallest
> > optimized code size instead of fastest optimized code size. Apple, of
> > course, uses -Os because it rocks hard on PPC.
> -Os can be faster on x86 too, under some conditions. I noticed
> sometimes things were peppier with it, sometimes not. Usually there's
> nothing really there.
> Then again how do you "notice" something these days? Besides load time
> the CPU is rarely touching 100%, which means things are happening in
> real time....
Of course, shaving a second or two off an already fast boot time still means
something. I wonder if anyone out there wants to experiment with Ubuntu
compiled with -Os
> >>> Scott
> >> --
> >> All content of all messages exchanged herein are left in the
> >> Public Domain, unless otherwise explicitly stated.
> >> Creative brains are a valuable, limited resource. They shouldn't be
> >> wasted on re-inventing the wheel when there are so many fascinating
> >> new problems waiting out there.
> >> -- Eric Steven Raymond
> >> We will enslave their women, eat their children and rape their
> >> cattle!
> >> -- Bosc, Evil alien overlord from the fifth dimension
> All content of all messages exchanged herein are left in the
> Public Domain, unless otherwise explicitly stated.
> Creative brains are a valuable, limited resource. They shouldn't be
> wasted on re-inventing the wheel when there are so many fascinating
> new problems waiting out there.
> -- Eric Steven Raymond
> We will enslave their women, eat their children and rape their
> -- Bosc, Evil alien overlord from the fifth dimension
Patrick McFarland || www.AdTerrasPerAspera.com
"Computer games don't affect kids; I mean if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music." -- Kristian Wilson, Nintendo,
More information about the ubuntu-devel