lmax disruptor is too slow in multi-producer mode compared to single-producer mode
问题 Previously, when I use single-producer mode of disruptor, e.g. new Disruptor<ValueEvent>(ValueEvent.EVENT_FACTORY, 2048, moranContext.getThreadPoolExecutor(), ProducerType.Single, new BlockingWaitStrategy()) the performance is good. Now I am in a situation that multiple threads would write to a single ring buffer. What I found is that ProducerType.Multi make the code several times slower than single producer mode. That poor performance is not going to be accepted by me. So should I use single