improving ld performance

Nick Clifton nickc@redhat.com
Tue Mar 9 12:10:00 GMT 2004


Hi Lars,

>> > I've been experimenting with changing the DEFAULT_SIZE of hash table
>> > in bfd/hash.c and got significant improvements in LD CPU times when
>> > linking one of our images (see below). I was wondering whether I can
>> > set this from the command line or linker script?
>>
>> There are no such options at present, but I think that this would be a
>> very good idea.  Would you like to develop a patch to do it ?
>
> Would it be a problem to just increase the default size of the hash tables? 

No - but I think that it will turn out that for some applications/
build environments an even bigger value would produce faster links.
On the other hand in small production environments having a smaller
value with reduced memory overheads might be desirable.  Thus having
a command line switch or linker script option to select the size of
the hash table would probably be very useful.

Cheers
        Nick
        



More information about the Binutils mailing list