X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=version2%2Fsrc%2FC%2Fhashtable.h;fp=version2%2Fsrc%2FC%2Fhashtable.h;h=6107e339c3ea972e5997374708f999cb7b4d2b5c;hb=f818627d0fc1f3c106684c1daff1cb96edc087db;hp=868060c17417cf6b1c71d2ca8c18c23d7384b67b;hpb=786e40250f31eff04eec25bbcaae3cd916fedb14;p=iotcloud.git 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;