grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.18-42-gd80c9a5


From: Jim Meyering
Subject: grep branch, master, updated. v2.18-42-gd80c9a5
Date: Tue, 01 Apr 2014 15:03:12 +0000

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  d80c9a5da2c5e04844ac39f8cdd45e6425b2dde6 (commit)
      from  df6da5d40a47abbc6e3451cb9fab7a8c9ede12cc (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=d80c9a5da2c5e04844ac39f8cdd45e6425b2dde6


commit d80c9a5da2c5e04844ac39f8cdd45e6425b2dde6
Author: Norihiro Tanaka <address@hidden>
Date:   Tue Apr 1 11:18:44 2014 +0200

    dfa: avoid re-building a state built previously
    
    * src/dfa.c (dfaexec): Avoid to re-build a state built previously.

diff --git a/src/dfa.c b/src/dfa.c
index b22fe97..b6fbd58 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3537,7 +3537,8 @@ dfaexec (struct dfa *d, char const *begin, char *end,
 
       if (s >= 0)
         {
-          build_state (s, d);
+          if (!d->trans[s])
+            build_state (s, d);
           trans = d->trans;
           continue;
         }

-----------------------------------------------------------------------

Summary of changes:
 src/dfa.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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