bug-grep
[Top][All Lists]
Advanced

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

bug#17604: dfa: avoid to clear a transition table for initial state


From: Norihiro Tanaka
Subject: bug#17604: dfa: avoid to clear a transition table for initial state
Date: Tue, 27 May 2014 08:49:26 +0900

If number of DFA states reaches at 1024, all transition tables are
cleared in build_state() in order to avoid out-of-memory.  However, for
initial state that shouldn't be done, because it's always used.

BTW, this patch enables to revert a previous patch "grep: do not count
newline before the start  of buffer", because no longer the code is never
be run through at a first character of a text.

Attachment: 0001-dfa-avoid-to-clear-a-transition-table-for-initial-st.patch
Description: Text document

Attachment: 0002-dfa-revert-grep-do-not-count-newline-before-the-star.patch
Description: Text document


reply via email to

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