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.
This commit is contained in:
Alan Mackenzie 2021-09-07 16:31:16 +00:00
parent 91afb9363d
commit 400b3c9376

View 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)