This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]