fgrep (isn't)

Henry Spencer henry at utzoo.UUCP
Sat Jul 13 02:37:48 AEST 1985


> Notice that plain old grep is the fastest of all, and fgrep is the slowest!

Sigh, it is well-known that fgrep is slow when searching for a single string.
You forgot to test egrep, which is well-known to be the fastest for the
trivial case.  Where fgrep makes a difference is when you want to search
for a number of strings simultaneously.  Grep can't do that at all, and 
egrep hits pattern-complexity limits quickly.  Fgrep really screams along
in this case.  I haven't tested bgrep et al yet.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Net.bugs.usg mailing list