Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
regexp: fast path for prefix/suffix literals matching on anchored regexps #39869
To my understanding, currently there's no fast path for anchored regular expressions starting/ending with a literal, like
I'm raising this issue, because in Prometheus we do a large use of anchored regexps (for labels matching) and having prefix/suffix literals in the regex looks to be quite a common use case.
In past few days I've worked on a small optimization in Prometheus (PR) to detect safe cases when we can circuit break the regex matching with a
I think in the case of