commit | 963fee2d694cd2033ef67045e54ce549bf198c28 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun May 26 21:47:28 2013 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun May 26 21:47:28 2013 +0200 |
tree | 8833154ed8b7e4c6179144632cf7f2717164f5a4 | |
parent | c4912e555bb609604f7e86ee2c38fe600c25f369 [diff] [blame] |
updated for version 7.3.1028 Problem: New regexp performance: Copying a lot of position state. Solution: Only copy the sub-expressions that are being used.
diff --git a/src/regexp.h b/src/regexp.h index 3b698a3..011eabf 100644 --- a/src/regexp.h +++ b/src/regexp.h
@@ -87,6 +87,7 @@ regprog_T regprog; nfa_state_T *start; int has_zend; /* pattern contains \ze */ + int nsubexp; /* number of () */ int nstate; nfa_state_T state[0]; /* actually longer.. */ } nfa_regprog_T;