Skip to content

Commit

Permalink
disruptor: bump sleep to 4ms
Browse files Browse the repository at this point in the history
~4% cpu
  • Loading branch information
Daniel Norberg committed Nov 26, 2018
1 parent aa8ee6a commit 5f90aab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static DisruptorEventQueue create() {
DISRUPTOR_BUFFER_SIZE,
new DaemonThreadFactory("OpenCensus.Disruptor"),
ProducerType.MULTI,
new SleepingWaitStrategy(0, 1000 * 1000));
new SleepingWaitStrategy(0, 4 * 1000 * 1000));
disruptor.handleEventsWith(new DisruptorEventHandler[] {DisruptorEventHandler.INSTANCE});
disruptor.start();
final RingBuffer<DisruptorEvent> ringBuffer = disruptor.getRingBuffer();
Expand Down

0 comments on commit 5f90aab

Please sign in to comment.