News for hackers. Stuff that matters.
Re:Why GNU grep is Fast by jakevoytko on Monday August 23, 2010 @10:01AM (#1626771)
Searching for "b" in "ab". Just two comparisons, compared to allocating, zeroing, and initializing a lookup table, and then doing a brute force search anyways. There's a fuzzy point where one becomes better than the other. Implementations written to be fast may brute-force length=1 strings, and implementations written for simplicity may not.

There are no comments on this comment yet.