conversant / disruptor

Disruptor BlockingQueue
Apache License 2.0
309 stars 46 forks source link

Can I replace ArrayBlockingQueue with DisruptorBlockingQueue when using virtual threads? #56

Open microhardsmith opened 1 year ago

microhardsmith commented 1 year ago

Is this project compatible with Project Loom?

rupweb commented 1 year ago

Hi Ben,

Could you write a Junit test and find out?

I’d like to know also.

Cheers,

Rupert Webster

From: benrush @.> Sent: 27 October 2022 04:15 To: conversant/disruptor @.> Cc: Subscribed @.***> Subject: [conversant/disruptor] Can I replace ArrayBlockingQueue with DisruptorBlockingQueue when using virtual threads? (Issue #56)

Is this project compatible with Project Loom?

— Reply to this email directly, view it on GitHub https://github.com/conversant/disruptor/issues/56 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AA644JZK37LNXOJP3TM5IJTWFHXU5ANCNFSM6AAAAAARPTGNSY . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AA644J72XV6Y2QYXYCMXBXDWFHXU5A5CNFSM6AAAAAARPTGNS2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHFJ3Z4FA.gif Message ID: @. @.> >

microhardsmith commented 1 year ago

By my tests: DisruptorTest.testArray thrpt 25 0.210 ± 0.006 ops/ms DisruptorTest.testDisruptorBlocking thrpt 25 0.174 ± 0.004 ops/ms DisruptorTest.testDisruptorWaiting thrpt 25 0.174 ± 0.006 ops/ms DisruptorTest.testLink thrpt 25 0.112 ± 0.002 ops/ms ArrayBlockingQueue seems to be even faster and SpinPolicy.SPINNING won't work