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

Integrate with Crystal::Evented #29

Open
ysbaddaden opened this issue Jul 26, 2024 · 0 comments · May be fixed by #34
Open

Integrate with Crystal::Evented #29

ysbaddaden opened this issue Jul 26, 2024 · 0 comments · May be fixed by #34
Assignees
Labels
enhancement New feature or request

Comments

@ysbaddaden
Copy link
Owner

ysbaddaden commented Jul 26, 2024

See crystal-lang/crystal#14829

Also we can now try:

  • Crystal::Evented#run_internal should return a list of fibers to run, so the scheduler can resume one immediately and enqueue the rest in a single bulk operation (avoids parallel enqueues and N individual operations and a follow up dequeue).

  • Keep a single EventLoop instance per EC: MT doesn't need a blocked list anymore, and we don't need BlockedScheduler anymore either (we just need to know that a thread is waiting, so we can interrupt the eventloop, not which thread is waiting).

@ysbaddaden ysbaddaden added the enhancement New feature or request label Jul 26, 2024
@ysbaddaden ysbaddaden self-assigned this Jul 26, 2024
@ysbaddaden ysbaddaden linked a pull request Oct 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant