diff options
author | Alan Mackenzie <acm@muc.de> | 2021-09-07 16:31:16 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2021-09-07 16:32:49 +0000 |
commit | 400b3c9376a5de033f98476263b7fe65988289a8 (patch) | |
tree | bfae22e7d1f365ec0450f7463c9ec7a2cef1d024 /lisp/jit-lock.el | |
parent | 91afb9363de7f0c793f0b10414162ca82a5db821 (diff) | |
download | emacs-400b3c9376a5de033f98476263b7fe65988289a8.tar.gz emacs-400b3c9376a5de033f98476263b7fe65988289a8.tar.bz2 emacs-400b3c9376a5de033f98476263b7fe65988289a8.zip |
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.
Diffstat (limited to 'lisp/jit-lock.el')
-rw-r--r-- | lisp/jit-lock.el | 7 |
1 files 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) |