4 ms·
Rust's regex library has had support for regex sets for quite some time, and it's based on the same "tricks" that RE2 uses: https://docs.rs/regex/0.2.2/regex/st
by burntsushi 9y ago
Rust's regex library has had support for regex sets for quite some time, and it's based on the same "tricks" that RE2 uses: https://docs.rs/regex/0.2.2/regex/struct.RegexSet.html https://docs.rs/regex/0.2.2/regex/struct.RegexSet.html
- glangdale 9y agoOops. We're out of date in our thinking then. If the implementation is similar to re2, you'll probably see similar performance, although I hear good things about your small group literal matcher. :-)
- burntsushi 9y ago:P Yeah, I would expect performance characteristics to be very similar to RE2! I actually think RegexSet disables literal optimizations in more cases than the standard regex, but it's been a while since I've touched that.