[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot 35a519a533: Per #978: Reduce memory footprint of
From: |
ELPA Syncer |
Subject: |
[elpa] externals/eglot 35a519a533: Per #978: Reduce memory footprint of eglot--{} |
Date: |
Fri, 24 Jun 2022 05:57:37 -0400 (EDT) |
branch: externals/eglot
commit 35a519a533c2d28e7d88e8541eca0de2daa531ee
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: GitHub <noreply@github.com>
Per #978: Reduce memory footprint of eglot--{}
* eglot.el (eglot--{}): Specify smallest hash table :size, to spare
~1KiB according to memory-report-object-size.
See also https://github.com/joaotavora/eglot/pull/315.
---
eglot.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eglot.el b/eglot.el
index 53ae6fae3c..bde4a23f8e 100644
--- a/eglot.el
+++ b/eglot.el
@@ -368,7 +368,7 @@ This can be useful when using docker to run a language
server.")
`((1 . eglot-diagnostic-tag-unnecessary-face)
(2 . eglot-diagnostic-tag-deprecated-face)))
-(defconst eglot--{} (make-hash-table) "The empty JSON object.")
+(defconst eglot--{} (make-hash-table :size 1) "The empty JSON object.")
(defun eglot--executable-find (command &optional remote)
"Like Emacs 27's `executable-find', ignore REMOTE on Emacs 26."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/eglot 35a519a533: Per #978: Reduce memory footprint of eglot--{},
ELPA Syncer <=