prometheus/tsdb/index
Oleg Zaytsev 64a9abb8be
Change LabelValuesFor() to accept index.Postings (#14280)
The only call we have to LabelValuesFor() has an index.Postings, and we
expand it to pass to this method, which will iterate over the values.

That's a waste of resources: we can iterate on the index.Postings
directly.

If there's any downstream implementation that has a slice of series,
they can always do an index.ListPostings from them: doing that is
cheaper than expanding an abstract index.Postings.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-06-11 15:36:46 +02:00
..
index_test.go tsdb/index: Fix TestReader_PostingsForLabelMatchingHonorsContextCancel 2024-06-03 17:29:06 +02:00
index.go Change LabelValuesFor() to accept index.Postings (#14280) 2024-06-11 15:36:46 +02:00
postings_test.go MemPostings.PostingsForLabelMatching(): don't hold the mutex while matching (#14286) 2024-06-10 14:24:17 +02:00
postings.go MemPostings.PostingsForLabelMatching(): don't hold the mutex while matching (#14286) 2024-06-10 14:24:17 +02:00
postingsstats_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
postingsstats.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00