Erik Wikström writes: > On 2006-01-19 16:31, Antonio Bravo wrote: > > Curious about getting documentation or tips if possible. > > > > I have build JDK14 yesterday from pkgsrc/wip and it took more than 6 > > hours on a box where the same JDK is built in about 3 hours for > > NetBSD or OpenBSD... > > Similar thing do happen with the other c++ beasts like KDE, it takes > > roughly more x2 time to build.Insane. I know zero about c++, but if > > someone can point to some docs about that issue I will appreciate > > much.Thanks! > > Are you using the same version of gcc? I seem to recall that there were > some performance issues about C++, but that might have been gcc 4. > > Erik Wikström
Exactly. Ensure that you are comparing the same version of gcc on each platform, and you're that using the same optimizations. There have been radical improvements in gcc's C++ implementation and compiler over the course of the 3.x series. 3.4.x and 4.0.0 especially. Additionally aggressive optimization seems to affect the speed gcc's C++ compiler more than its C compiler.
