From f818627d0fc1f3c106684c1daff1cb96edc087db Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 29 Mar 2018 13:42:07 -0700 Subject: [PATCH] Change default hashtable size --- version2/src/C/hashtable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version2/src/C/hashtable.h b/version2/src/C/hashtable.h index 868060c..6107e33 100644 --- a/version2/src/C/hashtable.h +++ b/version2/src/C/hashtable.h @@ -70,7 +70,7 @@ public: * @param factor Sets the percentage full before the hashtable is * resized. Default ratio 0.5. */ - Hashtable(unsigned int initialcapacity = 1024, double factor = 0.5) { + Hashtable(unsigned int initialcapacity = 32, double factor = 0.5) { // Allocate space for the hash table table = (struct Hashlistnode<_Key, _Val> *)ourcalloc(initialcapacity, sizeof(struct Hashlistnode<_Key, _Val>)); zero = NULL; -- 2.34.1