Re:Don’t underestimate grep-based code scanning
by jandrese on Wednesday August 07, 2019 @04:12PM
(#20638424)
I noticed severe slowdowns when passing in the /u flag on my regexes, even with big fixed ASCII strings in the middle of the patterns. They were taking 10 times as long to complete.
Re:Don’t underestimate grep-based code scanning
by burntsushi on Wednesday August 07, 2019 @04:43PM
(#20638804)
That doesn't imply that things like Boyer-Moore suddenly stop being effective. Without more details (which regex engine? what regex? what corpus? which programming language?) it's impossible to state the cause, but it could be as simple as the regex engine not being smart enough to use a literal searcher in that case.
Re:Don’t underestimate grep-based code scanning
by JetSpiegel on Wednesday August 07, 2019 @07:01PM
(#20640108)
Since you don't want to toot your own horn, and you saved me many hours of not waiting for searches, I'll link to ripgrep here
But the skip-ahead stuff isn't the most important thing nowadays. The key is staying in the fast vectorized skip loop as long as possible.