diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-19 14:35:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-19 14:35:50 +0100 |
commit | a1b489dec69b08017e3b30913f34e51ff262abd6 (patch) | |
tree | 2d8fd734f9161bc06d55f83dc63ea9586199e732 /vespalib | |
parent | 0cedeebeb40119734ad3b40b82026445384837ad (diff) | |
parent | 90599475e43baa18897e095e4f2c398eef18714d (diff) |
Merge pull request #17075 from vespa-engine/toregge/use-3-stripes-in-simple-hash-map
Use 3 stripes in vespalib::datastore::SimpleHashMap.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/simple_hash_map.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/simple_hash_map.h b/vespalib/src/vespa/vespalib/datastore/simple_hash_map.h index 78e224c65df..2d97a9d45fc 100644 --- a/vespalib/src/vespa/vespalib/datastore/simple_hash_map.h +++ b/vespalib/src/vespa/vespalib/datastore/simple_hash_map.h @@ -36,7 +36,7 @@ public: using sgeneration_t = GenerationHandler::sgeneration_t; private: GenerationHolder _gen_holder; - static constexpr size_t num_stripes = 1; + static constexpr size_t num_stripes = 3; std::atomic<FixedSizeHashMap *> _maps[num_stripes]; std::unique_ptr<const EntryComparator> _comp; |