Reduce MAX_STORAGE_SIZE for wait free hash tables to reduce split_storage time.

This commit is contained in:
levlam 2022-09-30 16:38:11 +03:00
parent d3a2df8858
commit 8f0ffd0a65
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class WaitFreeHashMap {
using Storage = FlatHashMap<KeyT, ValueT, HashT, EqT>;
static constexpr size_t MAX_STORAGE_COUNT = 1 << 11;
static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, "");
static constexpr size_t MAX_STORAGE_SIZE = 1 << 17;
static constexpr size_t MAX_STORAGE_SIZE = 1 << 16;
static_assert((MAX_STORAGE_SIZE & (MAX_STORAGE_SIZE - 1)) == 0, "");
Storage default_map_;

View File

@ -19,7 +19,7 @@ class WaitFreeHashSet {
using Storage = FlatHashSet<KeyT, HashT, EqT>;
static constexpr size_t MAX_STORAGE_COUNT = 1 << 11;
static_assert((MAX_STORAGE_COUNT & (MAX_STORAGE_COUNT - 1)) == 0, "");
static constexpr size_t MAX_STORAGE_SIZE = 1 << 17;
static constexpr size_t MAX_STORAGE_SIZE = 1 << 16;
static_assert((MAX_STORAGE_SIZE & (MAX_STORAGE_SIZE - 1)) == 0, "");
Storage default_set_;