-
Notifications
You must be signed in to change notification settings - Fork 46
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
Wake up threads more aggressively if there is known work to do #100
Comments
I've been working on an alternative executor implementation that implements some of the crazier strategies, however. If Bevy wants this I can prioritize the work |
I'd be interested in this alternative executor. I'm currently experimenting with using |
I've had more time to think about it, and I've changed my mind. I'm willing to do this work for |
Upon investigating bevyengine/bevy#6941, we've found that thread wakeup times have been a significant bottleneck when spinning up large batches of tasks, like those mentioned in #91.
Would it be possible to more aggressively wake up threads (i.e. 2+ at a time), if and only if we know there is sufficient work for all of them? Whenever a thread is stealing work from another, it has an approximation of how much remaining work is in both threads, so it may be reasonable to weigh the potential contention against the cost of sequentially context switches as threads wake up.
The text was updated successfully, but these errors were encountered: