[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.27-31-gbb3d1ac
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.27-31-gbb3d1ac |
Date: |
Wed, 28 Dec 2016 06:33:53 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via bb3d1acbea88ced0cf4a93baa4ee8f2862f9e1ac (commit)
from a6f8b7464eb0812621ce7bb1f20180502e779050 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=bb3d1acbea88ced0cf4a93baa4ee8f2862f9e1ac
commit bb3d1acbea88ced0cf4a93baa4ee8f2862f9e1ac
Author: Norihiro Tanaka <address@hidden>
Date: Tue Dec 27 22:29:39 2016 -0800
grep: improve performance with multiple patterns
* src/grep.c (main): Avoid fgrep-to-grep conversion for word matching
with multiple patterns in single byte locales.
diff --git a/src/grep.c b/src/grep.c
index aebab20..ab47839 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2862,7 +2862,7 @@ main (int argc, char **argv)
for -iF. */
if (matcher == F_MATCHER_INDEX
&& (! localeinfo.multibyte
- ? match_words
+ ? n_patterns == 1 && match_words
: (contains_encoding_error (keys, keycc)
|| (match_icase && !fgrep_icase_available (keys, keycc)))))
{
-----------------------------------------------------------------------
Summary of changes:
src/grep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.27-31-gbb3d1ac,
Paul Eggert <=