From 78144156b0fc8c8ed80e6bb04ab27b50eba01d23 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Wed, 9 Nov 2022 21:28:18 +0000 Subject: [PATCH] Optimize c-bs-interval, changing its value from 5000 to 2000 * lisp/progmodes/cc-engine.el (c-bs-interval): This optimization speeds forward scrolling in a C Mode buffer by ~2.4%, backward scrolling by ~1.8%. --- lisp/progmodes/cc-engine.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index a13a0c838af..0ea722a9225 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -6052,7 +6052,7 @@ comment at the start of cc-engine.el for more info." ;; the like. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; The approximate interval at which we cache the value of the brace stack. -(defconst c-bs-interval 5000) +(defconst c-bs-interval 2000) ;; The list of cached values of the brace stack. Each value in the list is a ;; cons of the position it is valid for and the value of the stack as ;; described above. -- 2.39.5