ld flag that gives ~40% startup time boost

John Richard Moser nigelenki at comcast.net
Fri Jun 23 00:01:37 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



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....

>>> 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
    cattle!
                  -- Bosc, Evil alien overlord from the fifth dimension
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBRJshTws1xW0HCTEFAQLM3A//Qhr/DBpB2KYB4BaLjYVIVwdgeydqKjKM
phfUIblFlpXGD87OYPZTLmlGMne4Nx5YQ9m19zLJ6W4HH+QoH1EUyUpPWAvxUv/m
+YYQcG8rXTqoiIje03psS5kRcXNKNJNhLwOmmgc36UpbNXSO65FsGVgY1t5J2u9C
SkLayjEgpH152LAhw7Z6ZrrOH/vtFAlHPq3StIOLIAVgW0AK8sPBt2Fso29EKump
wLLSf/Bgq0w+3OiMlh+yO5U2eTx+mMF08JJukQAvXGW47aku//97eaOvW1v9rrj/
X8WnA7acJ3FEJvHyZ8d4UOk8aZwJg8+2lJ+9n2m6VgCt+2AJgVxW0wtGOlPBhnH3
ZC8MHhrooIVRkcjMNaTdgLHXq+rvMOO1szdj8QF2vujUXHQY4Ctf/EPejHuxQepF
jfr2w4knPmg3OnBYR8bbVmKiMz2ld5B9G60iTEBB5ri/iU3NUnV8B1siKsSGr1zO
gd4XmCdrbFETf2L1EA3qJlPuDQWM+w9fEWOpEHoIm5ASaE3r8JJK3c1Cf08EMxFA
EiioJ7Bt6IzxqOPUG5NZigTnefL0qTgaeHc7GKUr3t3BP/rb9brI37D03Tg58r4c
P6NPMyQUarAfN0V2vsFH8zvygPbIjhHGertAwyo5S6okN5yyvUWKscLtYAF8IvKq
u7xZFNGZa94=
=dSyK
-----END PGP SIGNATURE-----



More information about the ubuntu-devel mailing list