Some explanations why grep is incredibly fast

Today there’s two links explaining why grep is so incredibly fast at scanning large bodies of text.

First the „Treacherous optimization“ post over at ridiculousfish which is a bit old (from 2006) but still a great and entertaining read.

And second an explanation of the speed of GNU grep by Mike Haertel its original author.