Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
microhardsmith opened this issue Oct 27, 2022 · 2 comments

Comments

@microhardsmith
Copy link

Is this project compatible with Project Loom?

@rupweb
Copy link

rupweb commented Oct 27, 2022 via email

@microhardsmith
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants