Re:How quickly can you remove spaces from a string?
by burntsushi on Friday January 20, 2017 @08:42PM
(#13448324)
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
[ Parent
| on HN ]
Re:How quickly can you remove spaces from a string?
by UnoriginalGuy on Friday January 20, 2017 @11:21PM
(#13448766)
What 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.
Re:How quickly can you remove spaces from a string?
by burntsushi on Saturday January 21, 2017 @12:56AM
(#13449047)
I 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.