1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.16.1/100-bfd-hash-tweak.patch Sun Apr 27 09:46:26 2008 +0000
1.3 @@ -0,0 +1,23 @@
1.4 +Signed-off-by: dank@kegel.com
1.5 +
1.6 +Raising the size of the hash table is a noticable win when linking
1.7 +at least one large app.
1.8 +
1.9 +There was a patch,
1.10 +http://sources.redhat.com/ml/binutils/2004-06/msg00165.html
1.11 +to do this dynamically. No idea why that didn't make it in.
1.12 +So this tiny change to raise the default size is just
1.13 +a stopgap for now.
1.14 +
1.15 +
1.16 +--- binutils-2.16.1/bfd/hash.c.old 2006-03-02 23:01:39.000000000 -0800
1.17 ++++ binutils-2.16.1/bfd/hash.c 2006-03-02 23:01:58.000000000 -0800
1.18 +@@ -300,7 +300,7 @@
1.19 + */
1.20 +
1.21 + /* The default number of entries to use when creating a hash table. */
1.22 +-#define DEFAULT_SIZE 4051
1.23 ++#define DEFAULT_SIZE 32749
1.24 + static size_t bfd_default_hash_table_size = DEFAULT_SIZE;
1.25 +
1.26 + /* Create a new hash table, given a number of entries. */