From: vlad shkapenyuk Date: Tue, 5 Nov 2019 22:22:27 +0000 (-0500) Subject: Change hash table size to use the power of 2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=c22232e56a6b37faa24300a008436fe776074419;hp=-c;p=com%2Fgs-lite.git Change hash table size to use the power of 2 Signed-off-by: vlad shkapenyuk Change-Id: I1219131f50f0435f3d73ac8a98447a35881a2b0c --- c22232e56a6b37faa24300a008436fe776074419 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