Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
regexp: optimize for provably too long inputs #33484
As a complement to #31329, we should find out what the maximum length of matchable inputs is at compile-time (when it exists) and return very early.
Some patterns for which this can be computed: