prometheus/model/labels
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
..
labels.go labels: shrink stack arrays in Builder.Range 2023-03-22 17:14:43 +00:00
labels_string.go labels: shrink stack arrays in Builder.Range 2023-03-22 17:14:43 +00:00
labels_test.go labels: add test for Builder.Range 2023-03-16 13:25:55 +00:00
matcher.go Optimize long alternate lists (#463) 2023-04-01 08:35:35 +02:00
matcher_test.go Expose Matcher.Prefix() 2023-01-19 17:21:28 +01:00
regexp.go Improve fast regexp matcher cache (#482) 2023-04-17 15:20:58 +02:00
regexp_test.go Improve fast regexp matcher cache (#482) 2023-04-17 15:20:58 +02:00
sharding.go Hardcode the labels stable hash function instead of taking it as an option 2023-01-30 14:21:18 +01:00
test_utils.go labels: use ScratchBuilder in ReadLabels 2022-12-19 15:22:09 +00:00