-
Notifications
You must be signed in to change notification settings - Fork 56
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
Exit worker threads early when there are no tasks after a while #377
Comments
@byhashdong Here it is, sir! |
Hopefully one day we understand why!
Ah yes, the scope should end immediately when all threads join. The original idea is more about starting to post-process when
While looking for a Lines 118 to 119 in bed6f22
We can add a counter here to return a |
@byhashdong Yes, something like that. FYI, |
rayon
thread pool in Pevm
between runs
@byhashdong Is I've also played with a few numbers and cannot find a sweet spot. There are always strong wins (no late dependencies so exiting workers early removes tail latency) and losses (many dependencies so when we exit threads early we lack workers when we reset the execution index way back early in the block). I think we should bring more variables to the equation. For instance, to only count empty tasks and exit threads when |
@byhashdong For micro-benchmarks like this it's best to close most processes (especially large ones like browsers and code editors with |
No description provided.
The text was updated successfully, but these errors were encountered: