This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Re[2]: GAS
- From: "Zagorodnev, Grigory" <grigory dot zagorodnev at intel dot com>
- To: "Stas Kiselev" <stas_kiselev at bk dot ru>, <binutils at sources dot redhat dot com>
- Date: Tue, 5 Apr 2005 11:52:41 +0400
- Subject: RE: Re[2]: GAS
>The idea is: huge input file implies huge symbol tables, that results
>more hash function collisions. Thus increasing the DEFAULT_SIZE of hash
>we can reduce the number of collisions and therefore speedup execution.
>Stas, would you try this on your sources, please?
Similar issue was reported against 'ld' 1.5 years ago. Simple change of
default hash size from 4K to 64K gave 2x link time improvement.
http://lists.gnu.org/archive/html/bug-gnu-utils/2003-08/msg00153.html
Thus the patch may look like this:
$ diff gas/hash.c.org gas/hash.c
38c38
< #define DEFAULT_SIZE (4051)
---
> #define DEFAULT_SIZE (65537)
- Grigory