summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/hashtable.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-06-23 14:25:57 (GMT)
committerBrad King <brad.king@kitware.com>2005-06-23 14:25:57 (GMT)
commit553f7a04d07aed93ae72148a171ec11d7a1403dd (patch)
treea8131891aadf9fa6f7e2b6b8d00d4b9b6d743a07 /Source/kwsys/hashtable.hxx.in
parentcad1975871b00d9f1bd7adc795816aefe3ab3c73 (diff)
downloadCMake-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.in3
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,