[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17420: [PATCH] grep: always convert fgrep to grep

From: Norihiro Tanaka
Subject: bug#17420: [PATCH] grep: always convert fgrep to grep
Date: Tue, 06 May 2014 22:36:57 +0900

fgrep uses different matcher from grep, but there is no reason why it
must be so.  Further more, fgrep matcher is slower than grep matcher in
many cases, because it never uses DFA.  This patch converts fgrep to grep
any time.

By the way, if `FGREP_NO_DFA' env. is set, fgrep still uses fgrep matcher.
It may be required in some cases.  fgrep matcher requires less memory
than grep matcher even if a pattern is too long, and/or is faster than
it in some cases to have multiple patterns.

Attachment: 0001-grep-always-convert-fgrep-to-grep.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]