3 ms·
> re2c is probably just as fast in practice, i'd imagine. Probably, but re2c requires every pattern to be run through a C compiler. Not useful if you want to
by haberman 11y ago
> re2c is probably just as fast in practice, i'd imagine.
Probably, but re2c requires every pattern to be run through a C compiler. Not useful if you want to use it as the embedded regex engine inside a language interpreter.
Also recent iterations of Intel processors contain specialized string-scanning instructions -- I would love to see engines that can take advantage of these. It would be hard for C compilers to recognize these patterns, I think, without explicit use of intrinsics: http://blog.reverberate.org/2009/07/gazelle-is-going-to-love-sse-42.html http://blog.reverberate.org/2009/07/gazelle-is-going-to-love...
- sitkack 11y agolibtcc, http://bellard.org/tcc/ http://bellard.org/tcc/