Increase block size.

This commit is contained in:
Bartosz Taudul 2017-09-12 00:46:10 +02:00
parent 6092c695bd
commit 30ceac359d

View File

@ -282,7 +282,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 = 32;
static const size_t BLOCK_SIZE = 128;
// 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.