prometheus/web
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/v1 Replace sort.Strings and sort.Ints with faster slices.Sort (#11318) 2022-09-30 20:03:56 +05:30
ui Clean up the Lezer grammar output tree (#11333) 2022-09-29 22:26:46 +02:00
federate.go storage: Consolidate iterator method names (Values -> At) (#9888) 2021-11-29 11:16:40 +01:00
federate_test.go unit tests: make all Labels sorted alphabetically (#10532) 2022-05-04 23:41:36 +02:00
web.go delete redundant alias (#11180) 2022-08-31 15:50:38 +02:00
web_test.go /-/{healthy,ready}/ respond to HEAD (#11160) 2022-08-16 21:06:26 +02:00