VictoriaMetrics/lib/regexutil
Aliaksandr Valialkin 7afe8450fc
lib/promrelabel: optimize matching for commonly used regex patterns in if option
The following regex patterns are optimized:

- literal string match, e.g. "foo"
- prefix match, e.g. "foo.*" and "foo.+"
- substring match, e.g. ".*foo.*" and ".+foo.+"
- alternate values match, e.g. "foo|bar|baz"
2022-08-26 14:53:06 +03:00
..
promregex_test.go lib/promrelabel: optimize matching for commonly used regex patterns in if option 2022-08-26 14:53:06 +03:00
promregex_timing_test.go lib/promrelabel: optimize matching for commonly used regex patterns in if option 2022-08-26 14:53:06 +03:00
promregex.go lib/promrelabel: optimize matching for commonly used regex patterns in if option 2022-08-26 14:53:06 +03:00
regexutil_test.go lib/regexutil: add Simplify() function for simplifying the regular expression 2022-08-26 11:57:12 +03:00
regexutil.go lib/regexutil: add Simplify() function for simplifying the regular expression 2022-08-26 11:57:12 +03:00