mirror of https://github.com/prometheus/prometheus
Browse Source
Use new experimental package `golang.org/x/exp/slices`. Some of the speedup comes from comparing SeriesRef (which is an int64) directly rather than through an interface `.Less()` call; some comes from exp/slices using "pattern-defeating quicksort(pdqsort)". Signed-off-by: Bryan Boreham <bjboreham@gmail.com> Signed-off-by: Bryan Boreham <bjboreham@gmail.com>pull/11378/head
Bryan Boreham
2 years ago
committed by
GitHub
3 changed files with 5 additions and 10 deletions
Loading…
Reference in new issue