3 ms·
This isn't true. Regular expressions can be fast even when supporting Unicode by building finite state machines that recognize UTF-8 directly. This particular b
by burntsushi 10y ago
This isn't true. Regular expressions can be fast even when supporting Unicode by building finite state machines that recognize UTF-8 directly. This particular benchmark explains a bit: http://blog.burntsushi.net/ripgrep/#linux-unicode-word http://blog.burntsushi.net/ripgrep/#linux-unicode-word
- UnoriginalGuy 10y agoWhat isn't true? I never said that regular expressions cannot support UNICODE fast. I said that regular expressions are slower than code due to the overhead in all scenarios. You're responding to a point never made.
- burntsushi 10y agoI am responding to your claim. I'm saying that not all regex implementations are created equal. Some can be just as fast as what you might write by hand.