Page 1 of 1

Profile Guided Optimization

Posted: 01 May 2011, 21:55
by jcuk
Of Interest to Code Developers here? Something I've just finished reading.

A couple of days ago:
Mozilla Devs finally succeeded in getting firefox optimizations
tuned for Linux so the performance in Linux is comparable to Windows ports.

See: Faster Linux Builds (Mozilla)
http://glandium.org/blog/?p=1975

Might be interesting to compare the Nightlies that use this Profile
Guided Optimization ( in SLAX modules? ) with the conventionally built
production binaries for Firefox.

Code bloat with -O3 used is likely if you are trying to cram as much
as possible into a small-ish LiveCD iso, but would KDE binaries benefit from
the same PGO treatment when building from source? I'm wondering how much
extra effort is needed to pick out the "low hanging fruit" of the slowest
parts of the product in an unguided unprofiled build process...

--jcuk

Re: Profile Guided Optimization

Posted: 04 May 2011, 17:09
by fanthom
thanks - i'll have a look on this:)

BTW i dont like -O3 and prefer -Os which produces smaller code and can be faster than -O3 in some scenarios:

Code: Select all

On computers with limited cache and/or memory, "-Os" may provide better performance in some cases through smaller binaries, although it is slower when using the OpenSSL library with small keys (DSA keys with less than 2048 bits on VIA C3-2, 1200 MHz and 64 kb on-die cache). 
source:
http://en.gentoo-wiki.com/wiki/Safe_Cflags

i'm using -Os for compilation of KDE-4