Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2004-01-05 07:12:21

Hash: SHA1

Hi !

Happy new Year !

On Tuesday 30 December 2003 11:05, Vladimir Prus wrote:
> Hi Kirill,

> That sounds reasonable.
> > I'll try to do an experiment tonight, measure ld performance in
> > all 3 cases -- libraries in right order, libraries put two times
> > on command line and -( -). Unfortunately my project is not too big
> > and it might be hard to see the difference. Any volunteers out
> > there to do similar thing on their projects?
> I'd be interested to know your result. I'll also ask on binutils
> mailing list.

Ok. I've done some testing:

Old Libraries specified 2-times
dynamic: 0m6.167s
static: 4m15.319s

dynamic: 0m7.032s
static: 3m44.356s

dynamic means full dynamic linking
static means static linked own libraries + qt + 3rd party libs, dynamic
system. Own libs some 30+, resulting exe 135 mb (release+debug symbols)
please note the speedup when linking static.
The most interesting fact is that dynamic liniing time is reduced to 1s
when everything is in cache (running the same command twice...)

Note that I also use SuSE 9.0 which has some patches to binutils which
speed up link by a factor of 10-20. I don't know whether these patches
are in current binutils, too.

Memory consumption during static linking is reduced, too.

And the patch solves my static linking problems due to bad library
design. I fear I have some libs which must be included three times on
command line due to circle definitions.

> Since it's New Year holidays in Russia, I'll be back online only
> next Monday, so I'll be able to apply your patch only then.

I'm +1 for the patch.



- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] !
Version: GnuPG v1.2.2 (GNU/Linux)



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at