patches/binutils/2.17/500-bfd-hash-tweak.patch
changeset 747 d3e603e7c17c
parent 746 b150d6f590fc
child 748 61cd4eb6034d
     1.1 --- a/patches/binutils/2.17/500-bfd-hash-tweak.patch	Mon Jul 28 21:08:01 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,23 +0,0 @@
     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.17/bfd/hash.c.old	2006-03-02 23:01:39.000000000 -0800
    1.17 -+++ binutils-2.17/bfd/hash.c	2006-03-02 23:01:58.000000000 -0800
    1.18 -@@ -298,7 +298,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.  */