File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2626//! Currently, in the event that a worker thread is unable to enqueue or dequeue an item to a shard
2727//! (due to a shard being occupied by another thread or the shard is full/empty), then the worker
2828//! thread simply context switches the task (putting it to the back of its queue) and tries working
29- //! on a different task that likely operates on a different shard. Doing this instead of using a slot
30- //! based approach tends to be faster because 1) context switching task is cheap (since kernel is not involved)
31- //! and 2) the synchronization performed in slots end up being costly when it is possible for multiple threads
32- //! to contend on a specific shard based on the task they are currently working on
29+ //! on a different task that likely operates on a different shard.
3330
3431mod guards;
3532mod shard_policies;
You can’t perform that action at this time.
0 commit comments