Permalink
Browse files

patch 7.4.2335

Problem:    taglist() is slow. (Luc Hermitte)
Solution:   Check for CTRL-C less often when doing a linear search. (closes
            #1044)
  • Loading branch information...
1 parent 1b0c2fc commit 72b4b870fcc445c14faf282e0595b5f9406b101d @brammool brammool committed Sep 6, 2016
Showing with 7 additions and 1 deletion.
  1. +5 −1 src/tag.c
  2. +2 −0 src/version.c
View
@@ -1578,7 +1578,11 @@ find_tags(
*/
for (;;)
{
- line_breakcheck(); /* check for CTRL-C typed */
+ /* check for CTRL-C typed, more often when jumping around */
+ if (state == TS_BINARY || state == TS_SKIP_BACK)
+ line_breakcheck();
+ else
+ fast_breakcheck();
#ifdef FEAT_INS_EXPAND
if ((flags & TAG_INS_COMP)) /* Double brackets for gcc */
ins_compl_check_keys(30);
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2335,
+/**/
2334,
/**/
2333,

0 comments on commit 72b4b87

Please sign in to comment.