-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Creating highly optimized and specialized fiber mailbox #8807
Comments
/bounty $1250 |
💎 $1,250 bounty • ZIOSteps to solve:
Additional opportunities:
Thank you for contributing to zio/zio! Add a bounty • Share on socials
|
cc @kyri-petrou |
Another possible experiment: pull out |
Bounty is for an implementation that is notably faster than concurrent linked queue in run loop-type usage scenarios, together with a benchmark that proves it, and also before/after benchmark results for any existing benchmarks that can benefit from a specialized mailbox (probably fork). |
@jdegoes sounds great, I'll give this a go! /attempt #8807
|
@kyri-petrou: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
@kyri-petrou I started working on an Array backed implementation which is showing some promise. Let me know if you would like to work together. |
Hey @hearnadam, thanks for reaching out! My time is going to be a bit sparse starting tomorrow as I'm going to be travelling, but I'm happy to share notes with you and provide insights if you like :) Feel free to reach out to me on Discord, my username is |
Note The user @kyri-petrou is already attempting to complete issue #8807 and claim the bounty. We recommend checking in on @kyri-petrou's progress, and potentially collaborating, before starting a new solution. |
@kyri-petrou The Jiffy algorithm is a novel one. Hope its fine if I attempt this in parallel. |
@ajaychandran of course feel free to, and thanks for asking! :) curious to see what it yields! |
@ajaychandran: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏 |
💡 @ajaychandran submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Currently, ZIO 2 uses a concurrent linked queue for the mailbox. However, this data structure is very generic, and not optimized for the fiber runloop in particular. Therefore, it should be possible to create a specialized concurrent mailbox that performs significantly better for run loop workloads.
Facts we can take advantage of:
Random ideas to experiment with:
slot1
,slot2
,slot3
,slot4
)The text was updated successfully, but these errors were encountered: