public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Linking windows dll slow / huge section count the problem?
@ 2005-06-27 13:10 Christian Ehrlicher
  0 siblings, 0 replies; only message in thread
From: Christian Ehrlicher @ 2005-06-27 13:10 UTC (permalink / raw)
  To: binutils

Hello

I've the same problem like described in the thread 'performance problem when
linking for windows'. But I don't use BOOST so I need another solution.
First I don't understand why gcc creates so much sections so ld is getting
very slow (gprof says that bfd_pei_swap_sym_in is called 158296779 times!)
How can I avoid this?
Also I recognized that the sections are stored within a linked list which
makes it more worse since coff_section_from_bfd_index is walking through
this list. A quick solution for me was to save the section found in a static
var and start over with this within the next call which reduces the time for
coff_section_from_bfd_index from 4.26 to 1.47 seconds. This works because
the linked list seems to be sorted and coff_section_from_bfd_index is also
called with increasing index most the time.

Any ideas?
Christian

-- 
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-27 13:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-27 13:10 Linking windows dll slow / huge section count the problem? Christian Ehrlicher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).