-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131050: opt: reduce histogram filtering allocations r=mgartner a=mgartner This commit reduces allocations of `[]tree.Datum` used to build `constraint.Key`s in `(*Histogram).Filter` by reusing slices of previously built keys. In general, this is unsafe, but it is safe in this specific context because the `constraint.Key`s are only used temporarily to perform comparisons with other keys and references to them do no outlive the function. Epic: None Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
1 changed file
with
44 additions
and
16 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