To: vim_dev@googlegroups.com Subject: Patch 8.1.1724 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.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) Files: src/misc1.c, src/screen.c, src/feature.h *** ../vim-8.1.1723/src/misc1.c 2019-06-09 16:40:42.374865927 +0200 --- src/misc1.c 2019-07-21 14:32:47.765603226 +0200 *************** *** 3182,3192 **** */ #ifndef BREAKCHECK_SKIP ! # ifdef FEAT_GUI /* assume the GUI only runs on fast computers */ ! # define BREAKCHECK_SKIP 200 ! # else ! # define BREAKCHECK_SKIP 32 ! # endif #endif static int breakcheck_count = 0; --- 3182,3188 ---- */ #ifndef BREAKCHECK_SKIP ! # define BREAKCHECK_SKIP 1000 #endif static int breakcheck_count = 0; *** ../vim-8.1.1723/src/screen.c 2019-07-20 16:51:14.343605469 +0200 --- src/screen.c 2019-07-21 14:36:26.168146648 +0200 *************** *** 167,177 **** /* 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 --- 167,172 ---- *** ../vim-8.1.1723/src/feature.h 2019-07-20 19:14:46.210396115 +0200 --- src/feature.h 2019-07-21 14:43:30.029503289 +0200 *************** *** 483,488 **** --- 483,493 ---- # 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 * *** ../vim-8.1.1723/src/version.c 2019-07-21 14:14:22.796237688 +0200 --- src/version.c 2019-07-21 14:49:19.815418949 +0200 *************** *** 779,780 **** --- 779,782 ---- { /* Add new patch number below this line */ + /**/ + 1724, /**/ -- A disclaimer for the disclaimer: "and before I get a huge amount of complaints , I have no control over the disclaimer at the end of this mail :-)" (Timothy Aldrich) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///