From 400b3c9376a5de033f98476263b7fe65988289a8 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Tue, 7 Sep 2021 16:31:16 +0000 Subject: [PATCH] Increase jit-lock-chunk-size from 500 to 1500 for performance reasons * lisp/jit-lock.el (jit-lock-chunk-size): Increase to 1500. See also https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg00540.html. --- lisp/jit-lock.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el index a905936b6b9..c1a5bbe9478 100644 --- a/lisp/jit-lock.el +++ b/lisp/jit-lock.el @@ -44,10 +44,13 @@ Preserves the `buffer-modified-p' state of the current buffer." :version "21.1" :group 'font-lock) -(defcustom jit-lock-chunk-size 500 +(defcustom jit-lock-chunk-size 1500 "Jit-lock fontifies chunks of at most this many characters at a time. -This variable controls both display-time and stealth fontification." +This variable controls both display-time and stealth fontification. + +The optimum value is a little over the typical number of buffer +characters which fit in a typical window." :type 'integer) -- 2.39.5