-
Notifications
You must be signed in to change notification settings - Fork 941
Improve metric contention perf #8077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Improve metric contention perf #8077
Conversation
| // (AggregatorHolder), and so if a recording thread encounters an odd value, | ||
| // all it needs to do is release the "read lock" it just obtained (decrementing by 2), | ||
| // and then grab and record against the new current interval (AggregatorHolder). | ||
| private final AtomicInteger activeRecordingThreads = new AtomicInteger(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: update javadoc comments to reflect current design before merging
| forThread().unlock(); | ||
| } | ||
|
|
||
| @SuppressWarnings("ThreadPriorityCheck") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: remove leftover annotation from a previous revision
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8077 +/- ##
============================================
+ Coverage 90.20% 90.21% +0.01%
- Complexity 7594 7595 +1
============================================
Files 841 841
Lines 22915 22943 +28
Branches 2290 2296 +6
============================================
+ Hits 20670 20698 +28
- Misses 1529 1531 +2
+ Partials 716 714 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
DoubleExplicitBucketHistogramAggregatorlocking mechanism to use a striped set of cells approach.Summary view of perf changes to
MetricRecordBenchmarkops/son my machine:Raw benchmark output before and after
Before (on my machine):
After (on my machine):