4 ms·
That's not exactly hard to do, depending on features. There's a definite trade-off between features and the type of regex engine that can be implemented.
by kbenson 11y ago
That's not exactly hard to do, depending on features. There's a definite trade-off between features and the type of regex engine that can be implemented.
- DasIch 11y agoIt seems to me that one should be able to detect which features are actually used in a regular expression and choose one of multiple different underlying implementations based on that.
- kbenson 11y agoNewer versions of Perl actually support a pluggable regex engine system, so you can use specific regex engines for specific tasks.
- Twirrim 11y agoIf you hook in libpcre direct it actually comes with its own JIT these days. http://sljit.sourceforge.net/pcre.html http://sljit.sourceforge.net/pcre.html
- draven 11y agoHaving the compiler available at runtime kinda helps too!