]> git.eshelyaron.com Git - emacs.git/commitdiff
Increase jit-lock-chunk-size from 500 to 1500 for performance reasons
authorAlan Mackenzie <acm@muc.de>
Tue, 7 Sep 2021 16:31:16 +0000 (16:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 7 Sep 2021 16:32:49 +0000 (16:32 +0000)
* 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

index a905936b6b95734698b01054b0fd1e11b57315a8..c1a5bbe947814932f5802e2070933a9ec6c932aa 100644 (file)
@@ -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)