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_test.go typos correct 2021-05-20 09:52:33 +08:00
index.go 32 should better be replaced by "symbolFactor" (#9203) 2021-08-13 16:38:53 +05:30
postings_test.go Speed up BenchmarkPostings_Stats (#9213) 2021-08-18 10:27:21 +01:00
postings.go Remove symbols map from TSDB head (#9301) 2021-09-08 14:48:48 +05:30
postingsstats_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
postingsstats.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00