-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rather then lock/unlock the work queue ring for every item, save tons of pthread lock manipulation by allocating to the producer in batches. Over the long run, this doesn't change the CPU balance or hold up either thread, but it eliminates almost 3/4 of the lock/unlock episodes.
- Loading branch information
1 parent
76ebde4
commit 7fc6b02
Showing
2 changed files
with
73 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters