[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xelb bb3f395: Fix freezing on loading keymap
From: |
Chris Feng |
Subject: |
[elpa] externals/xelb bb3f395: Fix freezing on loading keymap |
Date: |
Fri, 13 Sep 2019 14:00:34 -0400 (EDT) |
branch: externals/xelb
commit bb3f395ec12f612e15177e4a452e4bbf501d0cec
Author: Chris Feng <address@hidden>
Commit: Chris Feng <address@hidden>
Fix freezing on loading keymap
* xcb.el (xcb:-connection-filter): Disable GC on receiving
replies/events. This approximately makes handling keymap changes 10x
faster.
---
xcb.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/xcb.el b/xcb.el
index 90dcdad..128bdf8 100644
--- a/xcb.el
+++ b/xcb.el
@@ -289,6 +289,9 @@ The result would be 29 or 61 bits, depending on the
machine."
Concurrency is disabled as it breaks the orders of errors, replies and events."
(let* ((connection (plist-get (process-plist process) 'connection))
+ ;; Temporarily disable GC here as typically it's about to do
+ ;; lots of marshaling/unmarshaling.
+ (gc-cons-threshold most-positive-fixnum)
(cache (vconcat (slot-value connection 'message-cache) message))
(cache-length (length cache)))
(setf (slot-value connection 'message-cache) cache)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/xelb bb3f395: Fix freezing on loading keymap,
Chris Feng <=