prometheus/tsdb/index
Oleg Zaytsev 701545286d
Pop intersected postings heap without popping (#10092)
See this comment for detailed explanation:

https://github.com/prometheus/prometheus/pull/9907#issuecomment-1002189932

TL;DR: if we don't call Pop() on the heap implementation, we don't need
to return our param as an `interface{}` so we save an allocation.
This would be popped for every label value, so it can be thousands of
saved allocations here (see benchmarks).

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2022-01-05 16:16:43 +05:30
..
index.go Check postings bytes length when decoding (#9766) 2021-11-24 15:26:37 +05:30
index_test.go Check postings bytes length when decoding (#9766) 2021-11-24 15:26:37 +05:30
postings.go Pop intersected postings heap without popping (#10092) 2022-01-05 16:16:43 +05:30
postings_test.go Pop intersected postings heap without popping (#10092) 2022-01-05 16:16:43 +05:30
postingsstats.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
postingsstats_test.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00