mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-14 17:44:06 -08:00
ae170f644c
* Use a prefix trie for long alternate lists * Add test for non terminal node * Fix panic in FuzzFastRegexMatcher_WithFuzzyRegularExpressions when the fuzzy regex is invalid Signed-off-by: Marco Pracucci <marco@pracucci.com> * Address PR feedback * Update model/labels/regexp_test.go Co-authored-by: Marco Pracucci <marco@pracucci.com> * Replace trie with slice or map depending on input size * Fix tests * Pull in tests from @pracucci's branch * Add setMatches back in * Use stringMatcher when it's faster * Fix linter * Estimate alternates ahead of time * Simplify construction with `IndexByte` * Add test and early return for empty regexp. * Fix race conditions in tests --------- Signed-off-by: Marco Pracucci <marco@pracucci.com> Co-authored-by: Marco Pracucci <marco@pracucci.com> |
||
---|---|---|
.. | ||
exemplar | ||
histogram | ||
labels | ||
metadata | ||
relabel | ||
rulefmt | ||
textparse | ||
timestamp | ||
value |