prometheus/model/labels
Marco Pracucci 1e7ad0ec11
Optimized very long case insensitive alternations (#444)
* Optimized very long case insensitive alternations

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

* Run common regexps in BenchmarkFastRegexMatcher

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

* Modify BenchmarkNewFastRegexMatcher to benchmark the NewFastRegexMatcher() function

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

* Reduced allocations by optimizeEqualStringMatchers()

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

* Fixed typo in comments

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

* Fixed typo in test case name

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

---------

Signed-off-by: Marco Pracucci <marco@pracucci.com>
2023-03-02 17:20:52 +01:00
..
labels.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
labels_test.go Simplify IndexReader.Series interface 2022-12-19 15:22:09 +00:00
matcher.go Expose Matcher.Prefix() 2023-01-19 17:21:28 +01:00
matcher_test.go Expose Matcher.Prefix() 2023-01-19 17:21:28 +01:00
regexp.go Optimized very long case insensitive alternations (#444) 2023-03-02 17:20:52 +01:00
regexp_test.go Optimized very long case insensitive alternations (#444) 2023-03-02 17:20:52 +01: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