comparison src/misc1.c @ 17452:f12745505a23 v8.1.1724

patch 8.1.1724: too much overhead checking for CTRL-C while processing text commit https://github.com/vim/vim/commit/b4fe0eb4b4fe52a68a1df05162c03fe51c2fce79 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 21 14:50:21 2019 +0200 patch 8.1.1724: too much overhead checking for CTRL-C while processing text 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 21 Jul 2019 15:00:07 +0200
parents b1263192461f
children 04245f071792
comparison
equal deleted inserted replaced
17451:15078662cd76 17452:f12745505a23
3180 * each line in the file. Calling ui_breakcheck() each time takes too much 3180 * each line in the file. Calling ui_breakcheck() each time takes too much
3181 * time, because it can be a system call. 3181 * time, because it can be a system call.
3182 */ 3182 */
3183 3183
3184 #ifndef BREAKCHECK_SKIP 3184 #ifndef BREAKCHECK_SKIP
3185 # ifdef FEAT_GUI /* assume the GUI only runs on fast computers */ 3185 # define BREAKCHECK_SKIP 1000
3186 # define BREAKCHECK_SKIP 200
3187 # else
3188 # define BREAKCHECK_SKIP 32
3189 # endif
3190 #endif 3186 #endif
3191 3187
3192 static int breakcheck_count = 0; 3188 static int breakcheck_count = 0;
3193 3189
3194 void 3190 void