commit | dd2ccdf6eaf3de0a5e9a4bb3b9e08dd55168c629 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Jun 03 12:17:04 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Jun 03 12:17:04 2013 +0200 |
tree | 05ee9716b71c1850e6bbedf54cab22cb1123fc2d | |
parent | f46da70603be5280555da3bc8b5519b807e93afd [diff] [blame] |
updated for version 7.3.1106 Problem: New regexp engine: saving and restoring lastlist in the states takes a lot of time. Solution: Use a second lastlist value for the first recursive call.
diff --git a/src/regexp.h b/src/regexp.h index 9809b3c..4841cd3 100644 --- a/src/regexp.h +++ b/src/regexp.h
@@ -72,7 +72,7 @@ nfa_state_T *out; nfa_state_T *out1; int id; - int lastlist; + int lastlist[2]; /* 0: normal, 1: recursive */ int negated; int val; };