0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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.
This commit is contained in:
Bram Moolenaar
2013-05-26 21:47:28 +02:00
parent c4912e555b
commit 963fee2d69
3 changed files with 110 additions and 104 deletions

View File

@@ -87,6 +87,7 @@ typedef struct
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;