3 ms·
The regex crate actually has quite a bit of optimization, which is why it's #1 on the benchmark game. In the OP, it looks like Rust is holding its own to me. J
by burntsushi 11y ago
The regex crate actually has quite a bit of optimization, which is why it's #1 on the benchmark game. In the OP, it looks like Rust is holding its own to me.
Just because Rust's regexes use automata doesn't mean they have to be slow. :-) It can be tricky to make them fast, but RE2 proves that it is possible!