-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate wlocks when updating existing histograms, gauges (#116)
apcu_add always takes a wlock in the current version 5.1.22, which leads to lots of lock contention in high concurrency scenarios. Since the most common operation ought to be updating an already existing key, wrap apcu_add in an apcu_exists that only takes a rlock. Signed-off-by: Tobias Bengtsson <[email protected]> Co-authored-by: Lukas Kämmerling <[email protected]>
- Loading branch information
1 parent
bf7d43e
commit 144022e
Showing
2 changed files
with
27 additions
and
13 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