From c22232e56a6b37faa24300a008436fe776074419 Mon Sep 17 00:00:00 2001 From: vlad shkapenyuk Date: Tue, 5 Nov 2019 17:22:27 -0500 Subject: [PATCH] Change hash table size to use the power of 2 Signed-off-by: vlad shkapenyuk Change-Id: I1219131f50f0435f3d73ac8a98447a35881a2b0c --- include/hfta/hash_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hfta/hash_table.h b/include/hfta/hash_table.h index 45559f8..e82940c 100644 --- 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