mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.988
Problem: New regexp engine is slow. Solution: Break out of the loop when the state list is empty.
This commit is contained in:
parent
d2470e9fbe
commit
66e83d7db0
@ -2951,6 +2951,11 @@ again:
|
|||||||
#ifdef NFA_REGEXP_DEBUG_LOG
|
#ifdef NFA_REGEXP_DEBUG_LOG
|
||||||
fprintf(debug, "\n-------------------\n");
|
fprintf(debug, "\n-------------------\n");
|
||||||
#endif
|
#endif
|
||||||
|
/*
|
||||||
|
* If the state lists are empty we can stop.
|
||||||
|
*/
|
||||||
|
if (thislist->n == 0 && neglist->n == 0)
|
||||||
|
break;
|
||||||
|
|
||||||
/* compute nextlist */
|
/* compute nextlist */
|
||||||
for (i = 0; i < thislist->n || neglist->n > 0; ++i)
|
for (i = 0; i < thislist->n || neglist->n > 0; ++i)
|
||||||
|
@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
988,
|
||||||
/**/
|
/**/
|
||||||
987,
|
987,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user