News for hackers. Stuff that matters.
Re:look(1): lines beginning with given string by alayne on Sunday December 13, 2015 @02:19AM (#10725677)
It's probably much faster in most cases of text files though.

I also think your constant time claim sounds too strong. You can eat a lot of end of line search time after the binary search and still beat a linear/regex search.

As someone else pointed out, look can also exit sooner.

There are no comments on this comment yet.