mirror of
https://github.com/prometheus/prometheus
synced 2024-12-28 01:32:19 +00:00
64a9abb8be
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> |
||
---|---|---|
.. | ||
index_test.go | ||
index.go | ||
postings_test.go | ||
postings.go | ||
postingsstats_test.go | ||
postingsstats.go |