prometheus/tsdb/index
Marco Pracucci c461e22341
Improve fast regexp matcher cache (#482)
* Limit FastRegexMatcher by size (bytes) and add a TTL to each entry

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Add TestNewFastRegexMatcher_CacheSizeLimit

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Tolerate ristretto goroutines when checking goroutine leaks

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Tolerate ristretto goroutines when checking goroutine leaks

Signed-off-by: Marco Pracucci <marco@pracucci.com>

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-04-17 15:20:58 +02:00
..
index.go Hardcode the labels stable hash function instead of taking it as an option 2023-01-30 14:21:18 +01:00
index_test.go Improve fast regexp matcher cache (#482) 2023-04-17 15:20:58 +02:00
postings.go Shortcut postings for matchers when empty postings are selected (#11813) 2023-01-10 15:21:49 +05:30
postings_test.go Merge remote-tracking branch 'upstream/main' into main 2023-01-08 14:55:44 +01:00
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