[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 400b3c9: Increase jit-lock-chunk-size from 500 to 1500 for perfor
From: |
Alan Mackenzie |
Subject: |
master 400b3c9: Increase jit-lock-chunk-size from 500 to 1500 for performance reasons |
Date: |
Tue, 7 Sep 2021 12:33:05 -0400 (EDT) |
branch: master
commit 400b3c9376a5de033f98476263b7fe65988289a8
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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 a905936..c1a5bbe 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 400b3c9: Increase jit-lock-chunk-size from 500 to 1500 for performance reasons,
Alan Mackenzie <=