-
Notifications
You must be signed in to change notification settings - Fork 40
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
Configurable thread pool size #79
Configurable thread pool size #79
Conversation
hey @gsquire ! thanks so much for this. this makes the default value way more intelligent. it turns out that the original spirit of my extremely not detailed issue ( #27 ) was that we would also accept an env variable that would designate the number. if you are interested in adding that to this PR we would love it! otherwise we'll accept this and do the env variable work in another PR. just lemme know! thanks for the contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks good, but there's another small feature we may wait on if the @gsquire is interested, so holding off merging til they respond :)
I can certainly add that. Here is how I envision the flow: If the environment variable is present (let me know what name sounds good), try and parse it as a |
hey @gsquire ! that sounds absolutely perfect. thank you so much!! |
i am not picky about the name, maybe |
cc i dont know if @steveklabnik has a pref |
I can update that soon and then change it if need be based on his response :) |
Rust's testing framework uses Env vars don't have namespacing, so you kind of have to do it in the name... |
c8255a6
to
e4f0269
Compare
Ok I adjusted it to |
this looks great @gsquire ! if you wanna fix up that last commit into the main commit you've got i think we can ship this! thank u so much for your patience, flexibility, and work ✨ ❤️ |
d6e8c24
to
5955b73
Compare
No problem, happy to contribute. Should be all set now. |
5955b73
to
09b0dcf
Compare
pool size while falling back to num_cpus if it is not present
09b0dcf
to
41071a9
Compare
Fixes #27
I'm not sure if this is desired so if it isn't, feel free to close it.