[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 78144156b0: Optimize c-bs-interval, changing its value from 5000
From: |
Alan Mackenzie |
Subject: |
master 78144156b0: Optimize c-bs-interval, changing its value from 5000 to 2000 |
Date: |
Wed, 9 Nov 2022 16:31:02 -0500 (EST) |
branch: master
commit 78144156b0fc8c8ed80e6bb04ab27b50eba01d23
Author: Alan Mackenzie <acm@muc.de>
Commit: Alan Mackenzie <acm@muc.de>
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 a13a0c838a..0ea722a922 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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 78144156b0: Optimize c-bs-interval, changing its value from 5000 to 2000,
Alan Mackenzie <=