Skip to content

Commit

Permalink
Per joaotavora#978: Reduce memory footprint of eglot--{}
Browse files Browse the repository at this point in the history
* eglot.el (eglot--{}): Specify smallest hash table :size, to spare
~1KiB according to memory-report-object-size.

See also joaotavora#315.
  • Loading branch information
basil-conto authored Jun 24, 2022
1 parent e835996 commit 35a519a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 35a519a

Please sign in to comment.