|
Karsten Hopp |
ae61a4 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
ae61a4 |
Subject: Patch 7.3.988
|
|
Karsten Hopp |
ae61a4 |
Fcc: outbox
|
|
Karsten Hopp |
ae61a4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ae61a4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
ae61a4 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
ae61a4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ae61a4 |
------------
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
Patch 7.3.988
|
|
Karsten Hopp |
ae61a4 |
Problem: New regexp engine is slow.
|
|
Karsten Hopp |
ae61a4 |
Solution: Break out of the loop when the state list is empty.
|
|
Karsten Hopp |
ae61a4 |
Files: src/regexp_nfa.c
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
*** ../vim-7.3.987/src/regexp_nfa.c 2013-05-21 12:43:52.000000000 +0200
|
|
Karsten Hopp |
ae61a4 |
--- src/regexp_nfa.c 2013-05-21 14:01:33.000000000 +0200
|
|
Karsten Hopp |
ae61a4 |
***************
|
|
Karsten Hopp |
ae61a4 |
*** 2951,2956 ****
|
|
Karsten Hopp |
ae61a4 |
--- 2951,2961 ----
|
|
Karsten Hopp |
ae61a4 |
#ifdef NFA_REGEXP_DEBUG_LOG
|
|
Karsten Hopp |
ae61a4 |
fprintf(debug, "\n-------------------\n");
|
|
Karsten Hopp |
ae61a4 |
#endif
|
|
Karsten Hopp |
ae61a4 |
+ /*
|
|
Karsten Hopp |
ae61a4 |
+ * If the state lists are empty we can stop.
|
|
Karsten Hopp |
ae61a4 |
+ */
|
|
Karsten Hopp |
ae61a4 |
+ if (thislist->n == 0 && neglist->n == 0)
|
|
Karsten Hopp |
ae61a4 |
+ break;
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
/* compute nextlist */
|
|
Karsten Hopp |
ae61a4 |
for (i = 0; i < thislist->n || neglist->n > 0; ++i)
|
|
Karsten Hopp |
ae61a4 |
*** ../vim-7.3.987/src/version.c 2013-05-21 13:30:17.000000000 +0200
|
|
Karsten Hopp |
ae61a4 |
--- src/version.c 2013-05-21 14:02:12.000000000 +0200
|
|
Karsten Hopp |
ae61a4 |
***************
|
|
Karsten Hopp |
ae61a4 |
*** 730,731 ****
|
|
Karsten Hopp |
ae61a4 |
--- 730,733 ----
|
|
Karsten Hopp |
ae61a4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ae61a4 |
+ /**/
|
|
Karsten Hopp |
ae61a4 |
+ 988,
|
|
Karsten Hopp |
ae61a4 |
/**/
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
--
|
|
Karsten Hopp |
ae61a4 |
The chat program is in public domain. This is not the GNU public license.
|
|
Karsten Hopp |
ae61a4 |
If it breaks then you get to keep both pieces.
|
|
Karsten Hopp |
ae61a4 |
-- Copyright notice for the chat program
|
|
Karsten Hopp |
ae61a4 |
|
|
Karsten Hopp |
ae61a4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ae61a4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ae61a4 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
ae61a4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|