Skip to content

Commit

Permalink
Increase jit-lock-chunk-size from 500 to 1500 for performance reasons
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Alan Mackenzie committed Sep 7, 2021
1 parent 91afb93 commit 400b3c9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lisp/jit-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 400b3c9

Please sign in to comment.