prometheus/tsdb/index
Bryan Boreham 87d909df4a
Remove symbols map from TSDB head (#9301)
This saves memory, effort and locking.

Since every symbol is also added to postings, `Symbols()` can be
implemented there instead. This now has to build a map for
deduplication, but `Symbols()` is only called for compaction, and `gc()`
used to rebuild the symbols map after every compaction so not an
additional cost.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-09-08 14:48:48 +05:30
..
index.go 32 should better be replaced by "symbolFactor" (#9203) 2021-08-13 16:38:53 +05:30
index_test.go typos correct 2021-05-20 09:52:33 +08:00
postings.go Remove symbols map from TSDB head (#9301) 2021-09-08 14:48:48 +05:30
postings_test.go Speed up BenchmarkPostings_Stats (#9213) 2021-08-18 10:27:21 +01:00
postingsstats.go
postingsstats_test.go