We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/stjepang/smol/blob/3e899311b08fa01693e83560384e6cb8850e5573/src/context.rs seems to use num_cpu threads by default. It will probably be better if we can control the number of threads used (especially necessary when we want to run a program on a machine with more than a few dozen cores).
num_cpu
Similar issue in async-std: async-rs/async-std#774, async-rs/async-std#690.
I remember Tokio already has configurations like core_threads and max_threads, but currently there's no way to configure them in smol.
core_threads
max_threads
The text was updated successfully, but these errors were encountered:
This issue now belongs into async-compat, where the default number of threads is set to 1.
async-compat
I'm not sure yet how to make the number of threads configurable... ideas welcome!
Sorry, something went wrong.
No branches or pull requests
https://github.com/stjepang/smol/blob/3e899311b08fa01693e83560384e6cb8850e5573/src/context.rs seems to use
num_cpu
threads by default. It will probably be better if we can control the number of threads used (especially necessary when we want to run a program on a machine with more than a few dozen cores).Similar issue in async-std: async-rs/async-std#774, async-rs/async-std#690.
I remember Tokio already has configurations like
core_threads
andmax_threads
, but currently there's no way to configure them in smol.The text was updated successfully, but these errors were encountered: