projects
/
iotcloud.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
786e402
)
Change default hashtable size
author
bdemsky
<bdemsky@uci.edu>
Thu, 29 Mar 2018 20:42:07 +0000
(13:42 -0700)
committer
bdemsky
<bdemsky@uci.edu>
Thu, 29 Mar 2018 20:42:07 +0000
(13:42 -0700)
version2/src/C/hashtable.h
patch
|
blob
|
history
diff --git
a/version2/src/C/hashtable.h
b/version2/src/C/hashtable.h
index 868060c17417cf6b1c71d2ca8c18c23d7384b67b..6107e339c3ea972e5997374708f999cb7b4d2b5c 100644
(file)
--- 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;