mirror of https://github.com/prometheus/prometheus
Browse Source
In the head and in v1 postings on disk, it makes no difference whether postings are sorted. Only for v2 does the code step through in order. So, move the sorting to where it is required, and thus skip it entirely in the head. Label values in on-disk blocks are already sorted, but `slices.Sort` is very fast on already-sorted data so we don't bother checking. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>pull/11809/head
Bryan Boreham
2 years ago
3 changed files with 2 additions and 19 deletions
Loading…
Reference in new issue