Re:How quickly can you remove spaces from a string?
by anowell on Friday January 20, 2017 @05:16PM
(#13447416)
You might checkout the literal optimizations that ripgrep does. IIRC, the underlying regex lib is optimizing a few classes of "simple" regexes with SIMD to achieve better perf than the first handwritten code in that article.
http://blog.burntsushi.net/ripgrep/#literal-optimizations