Closed
Description
One of the reasons why RE2/C++ is so fast is because it has two implementations of regex matching: a limited DFA matcher (no sub-capture support) and a full NFA simulation. This crate has the latter, but not the former.
Adding a DFA matcher should be an implementation detail and shouldn't require any public facing changes.
This is a pretty involved project. I hope to find time to do this some day, but if someone else wants to tackle it, I'd be happy to help mentor it. (Part of this will be figuring out how to handle the regex!
macro. Do we replicate the DFA there too like we do the NFA?)