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

split queue and idle to shared struct under one mutex #20

Open
marakew opened this issue May 8, 2024 · 0 comments
Open

split queue and idle to shared struct under one mutex #20

marakew opened this issue May 8, 2024 · 0 comments

Comments

@marakew
Copy link

marakew commented May 8, 2024

it seems you are use old tokio version for own implementation

last version uses one mutex for this

this impove the speed

https://github.com/tokio-rs/tokio/blob/6fcd9c02176bf3cd570bc7de88edaa3b95ea480a/tokio/src/runtime/scheduler/multi_thread/worker.rs#L192

https://github.com/tokio-rs/tokio/blob/6fcd9c02176bf3cd570bc7de88edaa3b95ea480a/tokio/src/runtime/scheduler/multi_thread/worker.rs#L291

@marakew marakew changed the title split queue and idle to shared mutex split queue and idle to shared struct May 8, 2024
@marakew marakew changed the title split queue and idle to shared struct split queue and idle to shared struct under one mutex May 8, 2024
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

1 participant