diff options
author | Brad King <brad.king@kitware.com> | 2005-06-23 14:25:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-06-23 14:25:57 (GMT) |
commit | 553f7a04d07aed93ae72148a171ec11d7a1403dd (patch) | |
tree | a8131891aadf9fa6f7e2b6b8d00d4b9b6d743a07 /Source/kwsys/hashtable.hxx.in | |
parent | cad1975871b00d9f1bd7adc795816aefe3ab3c73 (diff) | |
download | CMake-553f7a04d07aed93ae72148a171ec11d7a1403dd.zip CMake-553f7a04d07aed93ae72148a171ec11d7a1403dd.tar.gz CMake-553f7a04d07aed93ae72148a171ec11d7a1403dd.tar.bz2 |
ENH: Added some smaller primes to allow small hash table sizes and therefore shorter initial construction times.
Diffstat (limited to 'Source/kwsys/hashtable.hxx.in')
-rw-r--r-- | Source/kwsys/hashtable.hxx.in | 3 |
1 files changed, 2 insertions, 1 deletions
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, |