Code Review
/
com
/
gs-lite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
bfa34ab
)
Change the default size of hash table to smaller value
69/1369/1
author
vlad shkapenyuk
<vshkap@research.att.com>
Tue, 5 Nov 2019 22:03:13 +0000
(17:03 -0500)
committer
vlad shkapenyuk
<vshkap@research.att.com>
Tue, 5 Nov 2019 22:03:13 +0000
(17:03 -0500)
Signed-off-by: vlad shkapenyuk <vshkap@research.att.com>
Change-Id: I37da29a2b8fdf7528bd90b0bb839209a3b4afbef
include/hfta/hash_table.h
patch
|
blob
|
history
diff --git
a/include/hfta/hash_table.h
b/include/hfta/hash_table.h
index
f5b1afe
..
45559f8
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 =
131072
, const double load = 0.5) {
+ hash_table(const size_t n_buckets =
51437
, const double load = 0.5) {
load_factor = load;
int nb;
for(nb=2;nb<n_buckets;nb*=2);