Skip to content

Conversation

@kesyog
Copy link

@kesyog kesyog commented Feb 4, 2022

To increase performance with the default settings, default to using multi-threading, specifically one
thread per CPU. The user must explicitly opt out if they want
single-threaded behavior, the previous default.

This indirectly solves a different issue: the only way to automatically
peg the number of threads to the number of CPU's was to set
--worker 0 --threads 0 even though the worker argument had been
deprecated.

Fixes #18

To increase performance with the default settings, default to using one
thread per CPU. The user must explicitly opt out if they want
single-threaded behavior.

This indirectly solves a different issue: the only way to automatically
peg the number of threads to the number of CPU's was to set
`--worker 0 --threads 0` even though the `worker` argument had been
deprecated.

Fixes lotabout#18
@kesyog kesyog force-pushed the default-multithreading branch from 0df65f1 to 5ecd8eb Compare February 4, 2022 21:23
@kesyog kesyog changed the title Default to using one thread per CPU 🚀 Default to using multi-threading 🚀 Feb 23, 2022
@kesyog
Copy link
Author

kesyog commented Feb 23, 2022

@lotabout ping. I'd love to get this merged if you don't see any major issues with it

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

Successfully merging this pull request may close these issues.

Default to using multi-threading

1 participant