From 553f7a04d07aed93ae72148a171ec11d7a1403dd Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 23 Jun 2005 10:25:57 -0400 Subject: ENH: Added some smaller primes to allow small hash table sizes and therefore shorter initial construction times. --- Source/kwsys/hashtable.hxx.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in index e0465b7..ce5c7dd 100644 --- a/Source/kwsys/hashtable.hxx.in +++ b/Source/kwsys/hashtable.hxx.in @@ -379,10 +379,11 @@ struct _Hashtable_const_iterator { }; // Note: assumes long is at least 32 bits. -enum { _stl_num_primes = 28 }; +enum { _stl_num_primes = 31 }; static const unsigned long _stl_prime_list[_stl_num_primes] = { + 5ul, 11ul, 23ul, 53ul, 97ul, 193ul, 389ul, 769ul, 1543ul, 3079ul, 6151ul, 12289ul, 24593ul, 49157ul, 98317ul, 196613ul, 393241ul, 786433ul, -- cgit v0.12