|
Karsten Hopp |
fee1a8 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
fee1a8 |
Subject: Patch 7.3.1194
|
|
Karsten Hopp |
fee1a8 |
Fcc: outbox
|
|
Karsten Hopp |
fee1a8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
fee1a8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
fee1a8 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
fee1a8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
fee1a8 |
------------
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
Patch 7.3.1194
|
|
Karsten Hopp |
fee1a8 |
Problem: Yaml highlighting is slow.
|
|
Karsten Hopp |
fee1a8 |
Solution: Tune the estimation of pattern failure chance.
|
|
Karsten Hopp |
fee1a8 |
Files: src/regexp_nfa.c
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
*** ../vim-7.3.1193/src/regexp_nfa.c 2013-06-14 21:15:21.000000000 +0200
|
|
Karsten Hopp |
fee1a8 |
--- src/regexp_nfa.c 2013-06-14 22:14:17.000000000 +0200
|
|
Karsten Hopp |
fee1a8 |
***************
|
|
Karsten Hopp |
fee1a8 |
*** 4686,4691 ****
|
|
Karsten Hopp |
fee1a8 |
--- 4686,4703 ----
|
|
Karsten Hopp |
fee1a8 |
/* empty match works always */
|
|
Karsten Hopp |
fee1a8 |
return 0;
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_FIRST:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_NEG:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_NEG_FIRST:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_BEFORE:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_BEFORE_FIRST:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_BEFORE_NEG:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_INVISIBLE_BEFORE_NEG_FIRST:
|
|
Karsten Hopp |
fee1a8 |
+ case NFA_START_PATTERN:
|
|
Karsten Hopp |
fee1a8 |
+ /* recursive regmatch is expensive, use low failure chance */
|
|
Karsten Hopp |
fee1a8 |
+ return 5;
|
|
Karsten Hopp |
fee1a8 |
+
|
|
Karsten Hopp |
fee1a8 |
case NFA_BOL:
|
|
Karsten Hopp |
fee1a8 |
case NFA_EOL:
|
|
Karsten Hopp |
fee1a8 |
case NFA_BOF:
|
|
Karsten Hopp |
fee1a8 |
***************
|
|
Karsten Hopp |
fee1a8 |
*** 5264,5270 ****
|
|
Karsten Hopp |
fee1a8 |
skip_lid = nextlist->id;
|
|
Karsten Hopp |
fee1a8 |
#endif
|
|
Karsten Hopp |
fee1a8 |
}
|
|
Karsten Hopp |
fee1a8 |
! else if(state_in_list(thislist,
|
|
Karsten Hopp |
fee1a8 |
t->state->out1->out->out, &t->subs))
|
|
Karsten Hopp |
fee1a8 |
{
|
|
Karsten Hopp |
fee1a8 |
skip = t->state->out1->out->out;
|
|
Karsten Hopp |
fee1a8 |
--- 5276,5282 ----
|
|
Karsten Hopp |
fee1a8 |
skip_lid = nextlist->id;
|
|
Karsten Hopp |
fee1a8 |
#endif
|
|
Karsten Hopp |
fee1a8 |
}
|
|
Karsten Hopp |
fee1a8 |
! else if (state_in_list(thislist,
|
|
Karsten Hopp |
fee1a8 |
t->state->out1->out->out, &t->subs))
|
|
Karsten Hopp |
fee1a8 |
{
|
|
Karsten Hopp |
fee1a8 |
skip = t->state->out1->out->out;
|
|
Karsten Hopp |
fee1a8 |
*** ../vim-7.3.1193/src/version.c 2013-06-14 21:22:33.000000000 +0200
|
|
Karsten Hopp |
fee1a8 |
--- src/version.c 2013-06-14 22:26:49.000000000 +0200
|
|
Karsten Hopp |
fee1a8 |
***************
|
|
Karsten Hopp |
fee1a8 |
*** 730,731 ****
|
|
Karsten Hopp |
fee1a8 |
--- 730,733 ----
|
|
Karsten Hopp |
fee1a8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
fee1a8 |
+ /**/
|
|
Karsten Hopp |
fee1a8 |
+ 1194,
|
|
Karsten Hopp |
fee1a8 |
/**/
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
--
|
|
Karsten Hopp |
fee1a8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
fee1a8 |
206. You religiously respond immediately to e-mail, while ignoring
|
|
Karsten Hopp |
fee1a8 |
your growing pile of snail mail.
|
|
Karsten Hopp |
fee1a8 |
|
|
Karsten Hopp |
fee1a8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
fee1a8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
fee1a8 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
fee1a8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|