prometheus/tsdb/index
Oleg Zaytsev 2dc177d8af
MemPostings.Delete(): reduce locking/unlocking (#13286)
* MemPostings: reduce locking/unlocking

MemPostings.Delete is called from Head.gc(), i.e. it gets the IDs of the
series that have churned.

I'd assume that many label values aren't affected by that churn at all,
so it doesn't make sense to touch the lock while checking them.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-06-10 14:23:22 +02:00
..
index.go Check context every 128 labels instead of 100 (#14118) 2024-05-21 11:30:43 +02:00
index_test.go tsdb/index: Fix TestReader_PostingsForLabelMatchingHonorsContextCancel 2024-06-03 17:29:06 +02:00
postings.go MemPostings.Delete(): reduce locking/unlocking (#13286) 2024-06-10 14:23:22 +02:00
postings_test.go MemPostings.Delete(): reduce locking/unlocking (#13286) 2024-06-10 14:23:22 +02: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
postingsstats_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00