mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 13:44:05 -08:00
3330d85ba8
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> |
||
---|---|---|
.. | ||
checkpoint.go | ||
checkpoint_test.go | ||
live_reader.go | ||
reader.go | ||
reader_test.go | ||
wal.go | ||
wal_test.go | ||
watcher.go | ||
watcher_test.go |