GNU bug report logs - #65760
29.1; eglot performance issue

Previous Next

Package: emacs;

Reported by: Глеб Смирнов <glebsmirnov0708 <at> gmail.com>

Date: Tue, 5 Sep 2023 15:25:01 UTC

Severity: normal

Found in version 29.1

Full log


View this message in rfc822 format

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: glebsmirnov0708 <at> gmail.com, ivan-p-sokolov <at> ya.ru, 65760 <at> debbugs.gnu.org
Subject: bug#65760: 29.1; eglot performance issue
Date: Tue, 5 Sep 2023 17:45:32 +0100
On Tue, Sep 5, 2023 at 5:25 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> Adding João.

The troubleshooting section in the manual

   https://joaotavora.github.io/eglot/#Troubleshooting-Eglot

has a heading specifically dedicated to these types of
performance problems:

"A common and easy-to-fix cause of performance problems is the length
of the Eglot events buffer because it represent additional work that Eglot
must do. After verifying Eglot is operating correctly but slowly, try
to customize the variable eglot-events-buffer-size (see Eglot
Variables) to 0. This will disable any debug logging and may speed
things up."

So, keeping a rich log and human-readable log is very useful for
debugging but can kill performance if servers send tons of JSON.

Maybe I could review the default value of eglot-events-buffer-size
or find a more fine-grained solution like some new foo-print-level
or foo-print-length variables, likely for jsonrpc.el.  Suggestions
welcome.  Patches doing this are even more welcome.

João




This bug report was last modified 1 year and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.