
Code: Select all
Mon Oct 22 14:05:17 2012 >>> net-libs/webkit-gtk-1.8.3-r200
merge time: 2 hours, 57 minutes and 47 seconds.
Thu Jun 27 15:26:22 2013 >>> net-libs/webkit-gtk-1.8.3-r201
merge time: 2 hours, 40 minutes and 31 seconds.
Sun Jan 5 14:07:35 2014 >>> net-libs/webkit-gtk-1.8.3-r201
merge time: 3 hours, 26 minutes and 17 seconds.
Mon Jan 27 16:14:23 2014 >>> net-libs/webkit-gtk-1.8.3-r201
merge time: 3 hours, 2 minutes and 18 seconds.
Fri Apr 18 13:19:50 2014 >>> net-libs/webkit-gtk-2.2.6-r200
merge time: 4 hours, 47 minutes and 51 seconds.
Fri May 30 18:48:00 2014 >>> net-libs/webkit-gtk-2.2.6-r200
merge time: 4 hours, 33 minutes and 21 seconds.
Tue Jun 2 18:10:47 2015 >>> net-libs/webkit-gtk-2.4.8-r200
merge time: 7 hours, 4 minutes and 3 seconds.

There are trade-offs, though. Last I checked, clang-compiled code on average benchmarked slower than gcc-compiled code. ld is indeed a memory hog; however, if you have 4GiB or more of memory, my intuition is that you won't see a big advantage with Gold: after all, compile time dominates the build time.franzf wrote:The three steps to decrease compile time for webkit-gtk:
* Use clang
* Use ld.gold
* set CMAKE_MAKEFILE_GENERATOR="ninja" in your make.conf - you need to install dev-util/ninja for this.
Especially the last point reduced build time by 30 minutes (!!) on my system. ld.gold uses less memory (no swapping, hence faster) and also seems to be faster in general. clang compiles faster on my system than gcc-4.8 and 4.9 - 4.7 was just fine.

John R. Graham wrote:There are trade-offs, though. Last I checked, clang-compiled code on average benchmarked slower than gcc-compiled code. ld is indeed a memory hog; however, if you have 4GiB or more of memory, my intuition is that you won't see a big advantage with Gold: after all, compile time dominates the build time.franzf wrote:The three steps to decrease compile time for webkit-gtk:
* Use clang
* Use ld.gold
* set CMAKE_MAKEFILE_GENERATOR="ninja" in your make.conf - you need to install dev-util/ninja for this.
Especially the last point reduced build time by 30 minutes (!!) on my system. ld.gold uses less memory (no swapping, hence faster) and also seems to be faster in general. clang compiles faster on my system than gcc-4.8 and 4.9 - 4.7 was just fine.
Thanks for the tip on Ninja. I'm going to have to check that out.
- John
by not to 30 minutestoralf wrote:How long does it need before ?franzf wrote:Especially the last point reduced build time by 30 minutes (!!) on my system.
I don't put the whole chroot image into tmpfs, just /var/tmp/portage is mounted onto tmpfs. Furthermore in the past I set the max size to 10 GB for 4 independent chroot images - hoped, that not all would need it at the same time (unfortunately that wasn't the case for about 2 times within last few weeks, resulted in the moronic-question-of-the-week in this forum BTW)franzf wrote:@toralf: how much RAM is left after putting your chroot into the tmpfs?

Code: Select all
ramaswamy@tux ~ $ genlop -t llvm
* sys-devel/llvm
Thu Oct 18 12:40:45 2012 >>> sys-devel/llvm-3.0-r2
merge time: 31 minutes and 18 seconds.
Sat Nov 17 11:17:04 2012 >>> sys-devel/llvm-3.1-r2
merge time: 43 minutes and 51 seconds.
Fri Mar 28 10:54:26 2014 >>> sys-devel/llvm-3.3-r3
merge time: 46 minutes and 8 seconds.
Wed May 27 18:57:45 2015 >>> sys-devel/llvm-3.5.0
merge time: 2 hours, 17 minutes and 52 seconds.
Tue Jun 9 00:59:01 2015 >>> sys-devel/llvm-3.5.0
merge time: 7 hours, 22 minutes and 36 seconds.
i did not understand -k and package.usekrinn wrote:padoor: don't you think it would just be worther to waste the 10 minutes you need to learn portage?
-k and package.use could had saved you, but that's your time...
Code: Select all
man emerge
man portage
man make.conf
make-4 apparently slows things down a lot. (the new one with GUILE built-in; cos what every shellscripter wants is a LISP..;)linux_matt wrote:I have noticed large increases in compile times for some software. Below is the output of genlop -t for webkit-gtk. Is this to be expected with the increasing complexity of software or is it due to system age/performance (this is fairly old single-processor AMD system).

Although I don't know why the possibility to use GUILE should slows things down, I never understood why GNU people are so crazy about LISP. It was a horrible idea to use it for an editor, it is an even worse idea for a make system. I fail to see any rational reasons for this choice.steveL wrote:(the new one with GUILE built-in; cos what every shellscripter wants is a LISP..;)
Where did i said ccache won't faster it? That's not what i'm speaking of.mv wrote:I don't agree: The recompilation with changed USE-flags has quite some probability to be much faster with ccache.krinn wrote:i really don't think padoor is the kind of user that should use ccache ; it won't help him, it would made it worst.