[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17156: [PATCH 3/5] grep: avoid to re-build a state built previously.
From: |
Paolo Bonzini |
Subject: |
bug#17156: [PATCH 3/5] grep: avoid to re-build a state built previously. |
Date: |
Tue, 1 Apr 2014 11:18:44 +0200 |
From: Norihiro Tanaka <address@hidden>
* src/dfa.c (dfaexec): avoid to re-build a state built previously.
---
src/dfa.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/dfa.c b/src/dfa.c
index a7f0056..c06c922 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3533,7 +3533,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;
}
--
1.9.0
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", (continued)
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", arnold, 2014/04/02
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", Paul Eggert, 2014/04/02
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", Paul Eggert, 2014/04/03
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", Jim Meyering, 2014/04/04
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", Paul Eggert, 2014/04/05
- bug#17157: [PATCH 1/5] Partially revert "dfa: improve port to freestanding DJGPP", Jim Meyering, 2014/04/06
bug#17156: [PATCH 3/5] grep: avoid to re-build a state built previously.,
Paolo Bonzini <=
bug#17156: [PATCH 5/5] grep: pass a single line to regex, Paolo Bonzini, 2014/04/01
bug#17156: [PATCH 4/5] grep: optimization of DFA by reuse of multi-byte buffers in non-UTF8 locales, Paolo Bonzini, 2014/04/01
bug#17156: [PATCH 2/5] Revert conversion to shell scripts, Paolo Bonzini, 2014/04/01