]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.988 v7.3.988
authorBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 12:03:00 +0000 (14:03 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 12:03:00 +0000 (14:03 +0200)
Problem:    New regexp engine is slow.
Solution:   Break out of the loop when the state list is empty.

src/regexp_nfa.c
src/version.c

index ba3a0f492d63bfb46d2bc9a09ad07a01635569e4..8a0c2614a50395951f5d4125eeba65e14d0a373a 100644 (file)
@@ -2951,6 +2951,11 @@ again:
 #ifdef NFA_REGEXP_DEBUG_LOG
        fprintf(debug, "\n-------------------\n");
 #endif
+       /*
+        * If the state lists are empty we can stop.
+        */
+       if (thislist->n == 0 && neglist->n == 0)
+           break;
 
        /* compute nextlist */
        for (i = 0; i < thislist->n || neglist->n > 0; ++i)
index e274ae808c0562ac6333988e39722b7bcc7a5d04..8931d1d9ef8c7ca67a7b09df898593ebb5c43ccf 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    988,
 /**/
     987,
 /**/