diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-03 20:51:16 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-01-03 20:51:16 +0000 |
commit | 53b6bceedfdc2080b0286e6ca6e86a4f5c05901c (patch) | |
tree | dd72552f3fcc4b19520c29895a39d07556326c3e /vespalib | |
parent | 2d770a1c8d584acc0c4c6260f44f7f0099166ecc (diff) |
Improve the distribution by using a indirect mapping that should improve
chance for better loaddistribution.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/stllike/hashtable.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/hashtable.h b/vespalib/src/vespa/vespalib/stllike/hashtable.h index fa418cbad02..4b425c4bded 100644 --- a/vespalib/src/vespa/vespalib/stllike/hashtable.h +++ b/vespalib/src/vespa/vespalib/stllike/hashtable.h @@ -79,6 +79,8 @@ public: private: next_t _mask; }; + static size_t getModuloStl(size_t newSize); + static size_t getModuloSimple(size_t newSize); protected: struct DefaultMoveHandler { @@ -88,8 +90,6 @@ protected: } }; private: - static size_t getModuloStl(size_t newSize); - static size_t getModuloSimple(size_t newSize); static size_t getModulo(size_t newSize, const unsigned long * list, size_t sz); }; |