This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Use hashtab.[ch] hashtable for IA-64 loc_hash_table
- From: Michael Matz <matz at suse dot de>
- To: davidm at HPL dot HP dot COM
- Cc: Jakub Jelinek <jakub at redhat dot com>,Alan Modra <amodra at bigpond dot net dot au>, <binutils at sources dot redhat dot com>
- Date: Fri, 12 Sep 2003 00:03:52 +0200 (CEST)
- Subject: Re: [PATCH] Use hashtab.[ch] hashtable for IA-64 loc_hash_table
Hi,
On Thu, 11 Sep 2003, David Mosberger wrote:
> Happy to help with that: it shaved another 2 seconds out of the
> "minium kernel rebuild"!
I guess the other two patches from me don't help, do they? (Unless the
kernel uses many weak syms they shouldn't ;-) )
> So sec_merge_hash_lookup() burns 0.355 seconds on it's own, and
> another 0.117 seconds through calls to memcmp().
I'm currently working on a solution to that, which would avoid computing
the hashes of strings in the linker. This will need some more work
though, and support from GCC. I intend to extend the .debug_str section
with hashvalues for each string, which the compiler would emit already.
This would make this hotspot also go away.
Ciao,
Michael.