-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid allocating lambda in PercentileTimer.computeIfAbsent (#1128)
PercentileTimer.computeIfAbsent would delegate to Utils.computeIfAbsent, which actually eagerly calls get and then putIfAbsent if the timer is not in the underlying map. Just directly do that to avoid needing to allocate a lambda in the case the timer is present. The same change has been applied to PercentileDistributionSummary. --------- Co-authored-by: Brian Harrington <brharrington@gmail.com>
- Loading branch information
1 parent
77566c5
commit 921da23
Showing
3 changed files
with
31 additions
and
9 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
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