emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/marginalia 7d9c6aa 117/241: binding hash: specify large


From: Stefan Monnier
Subject: [elpa] externals/marginalia 7d9c6aa 117/241: binding hash: specify larger initial size
Date: Fri, 28 May 2021 20:49:09 -0400 (EDT)

branch: externals/marginalia
commit 7d9c6aa0b83623e4811c73b96ef02e5d5acbf6a8
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    binding hash: specify larger initial size
---
 marginalia.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/marginalia.el b/marginalia.el
index 73a11a3..6b0a71e 100644
--- a/marginalia.el
+++ b/marginalia.el
@@ -310,7 +310,7 @@ This hash table is needed to speed up 
`marginalia-annotate-binding'.")
     ;; collecting pauses when interacting with the minibuffer. See
     ;; https://github.com/minad/marginalia/issues/16.
     (unless marginalia--annotate-binding-hash
-      (setq marginalia--annotate-binding-hash (make-hash-table))
+      (setq marginalia--annotate-binding-hash (make-hash-table :size 1025))
       (mapatoms (lambda (sym)
                   (when-let (key (and (commandp sym) (where-is-internal sym 
nil t)))
                     (puthash sym key marginalia--annotate-binding-hash)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]