|
Are we missing some easy optimizations (LDFLAGS)?
--------------------------------------------------------------------------------
I know how much everyone here loves optimized software. This is why I was surprised to read today on the GNOME mailing list that Ubuntu is taking advantage of some optimization opportunities that I think Gentoo is missing out on.
See these two posts:
http://mail.gnome.org/archives/desktop-devel-list/2004-September/msg00377.html
http://mail.gnome.org/archives/desktop-devel-list/2004-September/msg00381.html
The LDFLAG in question is -O1, which according to Ulrich Drepper's paper, "How to Write Shared Libraries" is an optimization that should decrease application start times. You can try this out for yourself by having a line in /etc/make.conf that reads:
Code:
Feel free to share your results with this, as I'm curious to know if it has any positive or negative effects. Anyone more familiar with ld and LDFLAGS know if this would actually be useful? I assume others would be interested in doing this for Gentoo.
See my bug report here:
http://bugs.gentoo.org/show_bug.cgi?id=65002
[edit] This post from last year might be interesting:
LDFLAGS Central
http://forums.gentoo.org/viewtopic.php?t=67777&highlight=ldflags
How come this idea seemed to fizzle out? Does it really have that little effect? I don't know how many people here have tried Ubuntu yet, but I was impressed with the speed, especially considering it's a binary distribution. I know I found myself curious as to how they made their binary distribution so snappy...
See lower in the thread for some information on how this works from Ulrich Drepper's report.
http://forums.gentoo.org/viewtopic.php?t=226909&highlight=ldflag |
|