Reduce MAX_STORAGE_SIZE for wait free hash tables to reduce split_storage time.
This commit is contained in:
parent
d3a2df8858
commit
8f0ffd0a65
@ -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_;
|
||||
|
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user