prometheus/web/api/v1
Bryan Boreham 3330d85ba8
Replace sort.Strings and sort.Ints with faster slices.Sort (#11318)
Use new experimental package `golang.org/x/exp/slices`.

slices.Sort works on values that are directly comparable, like ints,
so avoids the overhad of an interface call to `.Less()`.

Left tests unchanged, because they don't need the speed and it may be
a cross-check that slices.Sort gives the same answer.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2022-09-30 20:03:56 +05:30
..
api.go Replace sort.Strings and sort.Ints with faster slices.Sort (#11318) 2022-09-30 20:03:56 +05:30
api_test.go Add out-of-order sample support to the TSDB (#11075) 2022-09-20 22:35:50 +05:30
errors_test.go Merge pull request #10857 from pstibrany/fix-errors-handling 2022-06-13 17:45:35 +02:00