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

See if the task execution engine can be single-threaded #13

Open
GWBasic opened this issue Nov 24, 2020 · 1 comment
Open

See if the task execution engine can be single-threaded #13

GWBasic opened this issue Nov 24, 2020 · 1 comment

Comments

@GWBasic
Copy link
Owner

GWBasic commented Nov 24, 2020

When using async code in rust, there are a lot of idle threads.

See if the async engine can be configured to be single-threaded; or follow a thread-per-core model.

@GWBasic
Copy link
Owner Author

GWBasic commented Nov 25, 2020

I briefly looked into this. I suspect it requires replacing task::spawn and using platform-specific code to block while waiting for IO. Alternatively, it may require using task::spawn_local once it's part of stable rust: https://docs.rs/async-std/1.7.0/async_std/task/fn.spawn_local.html

At this point, I'll keep the ticket open

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