You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current main execution loop is structured so that each qthread jumps back to the worker thread running it so that the worker thread can then jump to whichever qthread it wants to execute next. At least in theory it shouldn't matter at all if we call into the threadqueue APIs while finalizing our work on one qthread vs calling them after the context swap away from it. It'd likely be more efficient if we restructured things so that each qthread just jumped straight to whichever qthread was going to be executed next if one's readily available in the queue to start executing. This would dramatically reduce the number of context swaps in the (expected) non-contended threadqueue case.
The main thread pool and execution loop are already in dire need of restructuring, this is just one of the key benefits we can pick up from that.
The text was updated successfully, but these errors were encountered:
The current main execution loop is structured so that each qthread jumps back to the worker thread running it so that the worker thread can then jump to whichever qthread it wants to execute next. At least in theory it shouldn't matter at all if we call into the threadqueue APIs while finalizing our work on one qthread vs calling them after the context swap away from it. It'd likely be more efficient if we restructured things so that each qthread just jumped straight to whichever qthread was going to be executed next if one's readily available in the queue to start executing. This would dramatically reduce the number of context swaps in the (expected) non-contended threadqueue case.
The main thread pool and execution loop are already in dire need of restructuring, this is just one of the key benefits we can pick up from that.
The text was updated successfully, but these errors were encountered: