Super Volatile

Krzysztof Szafranek's link blog

Hi, I'm Krzysztof and I make websites.
When I'm not making websites, I read these.
Aug 23, 2010 / 11:34pm

why GNU grep is fast

  • #1 trick: GNU grep is fast because it AVOIDS LOOKING AT EVERY INPUT BYTE.
  • #2 trick: GNU grep is fast because it EXECUTES VERY FEW INSTRUCTIONS FOR EACH BYTE that it *does* look at.

Technical explanation of algorithms used by grep.