This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Commited] Extend BFD hash size table
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Thu, 29 Dec 2005 10:37:53 +0000
- Subject: [Commited] Extend BFD hash size table
Hi Guys,
I am applying the patch below to extend the hash_size_primes table
in bfd/hash.c, especially at the lower end. This will allow for
finer control over the size of the hash tables used by the BFD
library.
Cheers
Nick
bfd/ChangeLog
2005-12-29 Nick Clifton <nickc@redhat.com>
* hash.c (bfd_hash_set_default_size): Add more entries to the
hash_size_primes table.
Index: bfd/hash.c
===================================================================
RCS file: /cvs/src/src/bfd/hash.c,v
retrieving revision 1.18
diff -c -3 -p -r1.18 hash.c
*** bfd/hash.c 4 May 2005 15:53:31 -0000 1.18
--- bfd/hash.c 29 Dec 2005 10:31:08 -0000
*************** bfd_hash_set_default_size (bfd_size_type
*** 492,498 ****
/* Extend this prime list if you want more granularity of hash table size. */
static const bfd_size_type hash_size_primes[] =
{
! 1021, 4051, 8599, 16699
};
size_t index;
--- 492,498 ----
/* Extend this prime list if you want more granularity of hash table size. */
static const bfd_size_type hash_size_primes[] =
{
! 251, 509, 1021, 2039, 4051, 8599, 16699, 32749
};
size_t index;