mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Greatly increase queue block size.
Previous block size could hold only 256 elements (8KB), which stressed out the memory allocator. Storing 65536 elements (2MB) per block almost completely reduces the allocator pressure.
This commit is contained in:
parent
82f463724c
commit
e9a32d5dc7
@ -191,7 +191,7 @@ struct ConcurrentQueueDefaultTraits
|
||||
// but many producers, a smaller block size should be favoured. For few producers
|
||||
// and/or many elements, a larger block size is preferred. A sane default
|
||||
// is provided. Must be a power of 2.
|
||||
static const size_t BLOCK_SIZE = 256;
|
||||
static const size_t BLOCK_SIZE = 64*1024;
|
||||
|
||||
// For explicit producers (i.e. when using a producer token), the block is
|
||||
// checked for being empty by iterating through a list of flags, one per element.
|
||||
|
Loading…
Reference in New Issue
Block a user