We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
_allocation_batch_size
32
1 parent 27a561d commit a0797d2Copy full SHA for a0797d2
2 files changed
include/chainbase/chainbase_node_allocator.hpp
@@ -88,7 +88,7 @@ namespace chainbase {
88
bip::offset_ptr<list_item> _freelist{};
89
bip::offset_ptr<ss_allocator_t> _ss_alloc;
90
bip::offset_ptr<segment_manager> _manager;
91
- size_t _allocation_batch_size = 4;
+ size_t _allocation_batch_size = 32;
92
size_t _freelist_size = 0;
93
};
94
include/chainbase/small_size_allocator.hpp
@@ -90,7 +90,7 @@ class allocator {
bip::offset_ptr<char> _block_start;
bip::offset_ptr<char> _block_end;
backing_allocator _back_alloc;
95
size_t _num_blocks_allocated = 0; // number of blocks allocated from boost segment allocator
96
mutable std::mutex _m;
0 commit comments