forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An array-based task queue to address performance regressions.
TaskFifo has higher performance than `ConcurrentLinkedQueue` because primary contention is resolved through atomic increment, which translates into `LOCK XADD` and doesn't require a CAS loop. TaskFifo also generates negligible per-task garbage, only doing so when there is a descheduled or unusually slow take thread. PiperOrigin-RevId: 507600172 Change-Id: Iab60eec942a1b12e0ebe0fb3947c3b20a3bf8997
- Loading branch information
1 parent
e9316f0
commit 44782dc
Showing
4 changed files
with
695 additions
and
52 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
Oops, something went wrong.