From 30ceac359dd172c3515e68bafc898f1bf74b39a9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 12 Sep 2017 00:46:10 +0200 Subject: [PATCH] Increase block size. --- client/concurrentqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/concurrentqueue.h b/client/concurrentqueue.h index 245d9fb8..f587b45c 100755 --- a/client/concurrentqueue.h +++ b/client/concurrentqueue.h @@ -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.