Subject: Re: dynamic linker
To: None <firstname.lastname@example.org>
From: Charles Shannon Hendrix <email@example.com>
Date: 03/19/2002 23:32:44
On Wed, Mar 20, 2002 at 03:15:04PM +1200, Oleg Polyanski wrote:
> firstname.lastname@example.org (Greg A. Woods) writes:
> Few months ago (in October, I believe) somebody from Cygnus posted
> in binutils mailing list a detailed report about speeding up the
> loading of shared libraries in Linux. If my memory serves well, the
> real reason of this inefficiency is that GNU ld does not perform
> any optimisations when processing the object code during the
> linking which results in extremely inefficient executable binaries,
> it can be clearly seen when loading a big C++ application linked
> against bunch of shared libraries. The approach might be
> incorporated into one of the forthcoming releases of binutils and
> requires some modifications inside GNU ld. As a result, the overall
> loading time has vastly reduced and, for example, KDE with its
> enormous pack of shared libraries now starts just in a moment.
> Details can be easily found in their mailing list archive.
I thought this was a problem with C++ having to do relocations,
sometimes tens of thousands of times, when brining up a program with
complex class libraries.
The fixes so far have sped KDE up, but it's still very, very slow.