Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Storage: reduce memory allocations when merging series sets (promethe…
…us#12938) Instead of setting to nil and allocating a new slice every time the merge is advanced, re-use the previous slice. This is safe because the `currentSets` member is only used inside member functions, and explicitly copied in `At()`, the only place it leaves the struct. Signed-off-by: Bryan Boreham <[email protected]>
- Loading branch information