Code Review
/
com
/
gs-lite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Change hash table size to use the power of 2
[com/gs-lite.git]
/
include
/
hfta
/
hash_table.h
diff --git
a/include/hfta/hash_table.h
b/include/hfta/hash_table.h
index
45559f8
..
e82940c
100644
(file)
--- a/
include/hfta/hash_table.h
+++ b/
include/hfta/hash_table.h
@@
-119,7
+119,7
@@
private:
public:
- hash_table(const size_t n_buckets =
51437
, const double load = 0.5) {
+ hash_table(const size_t n_buckets =
65536
, const double load = 0.5) {
load_factor = load;
int nb;
for(nb=2;nb<n_buckets;nb*=2);