diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-21 14:50:21 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-21 14:50:21 +0200 |
commit | b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79 (patch) | |
tree | b51dac0c46871f62cfc202afd2b5835506108efc | |
parent | 24582007294b0db3be9669d3b583ea45fc4f19b8 (diff) |
patch 8.1.1724: too much overhead checking for CTRL-C while processing textv8.1.1724
Problem: Too much overhead checking for CTRL-C while processing text.
Solution: Increase BREAKCHECK_SKIP. Remove the difference for when built
with the GUI. (suggested by Andy Massimino, closes #4708)
-rw-r--r-- | src/feature.h | 5 | ||||
-rw-r--r-- | src/misc1.c | 6 | ||||
-rw-r--r-- | src/screen.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
4 files changed, 8 insertions, 10 deletions
diff --git a/src/feature.h b/src/feature.h index 37af4c0038..74ea8d59ca 100644 --- a/src/feature.h +++ b/src/feature.h @@ -483,6 +483,11 @@ # define FEAT_TEXT_PROP #endif +#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) +// Can limit syntax highlight time to 'redrawtime'. +# define SYN_TIME_LIMIT 1 +#endif + /* * +spell spell checking * diff --git a/src/misc1.c b/src/misc1.c index f5549fdc52..7df3954312 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3182,11 +3182,7 @@ vim_fexists(char_u *fname) */ #ifndef BREAKCHECK_SKIP -# ifdef FEAT_GUI /* assume the GUI only runs on fast computers */ -# define BREAKCHECK_SKIP 200 -# else -# define BREAKCHECK_SKIP 32 -# endif +# define BREAKCHECK_SKIP 1000 #endif static int breakcheck_count = 0; diff --git a/src/screen.c b/src/screen.c index 79987108e4..bd76f7ba53 100644 --- a/src/screen.c +++ b/src/screen.c @@ -167,11 +167,6 @@ static void win_redr_ruler(win_T *wp, int always, int ignore_pum); /* Ugly global: overrule attribute used by screen_char() */ static int screen_char_attr = 0; -#if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) -/* Can limit syntax highlight time to 'redrawtime'. */ -# define SYN_TIME_LIMIT 1 -#endif - #ifdef FEAT_RIGHTLEFT # define HAS_RIGHTLEFT(x) x #else diff --git a/src/version.c b/src/version.c index 5dc4d0ca5c..8a98f510a4 100644 --- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1724, +/**/ 1723, /**/ 1722, |