4 ms·
You've made me curious: Is there a language out there which does this, i.e. compiles Regex down to native code which is then as fast/faster than hand-coded byte
by sgift 11y ago
You've made me curious: Is there a language out there which does this, i.e. compiles Regex down to native code which is then as fast/faster than hand-coded bytes.hasSuffix(..) calls?
- nitrogen 11y agoI found this with a bit of searching and clicking around on Stackoverflow: https://www.colm.net/open-source/ragel/ https://www.colm.net/open-source/ragel/ (via http://stackoverflow.com/a/15608037 http://stackoverflow.com/a/15608037). I didn't look long enough to know if there's an easy way to convert a regular expression to Ragel syntax.