← Back to context

Comment by actionfromafar

3 days ago

How do you make LSPs fast?

> How do you make LSPs fast?

https://github.com/blahgeek/emacs-lsp-booster

The fundamental issue is Emacs its JSON parser is currently still rather slow (not sure why actually). But in LSP mode it needs to parse the LSP server's many JSON response messages very quickly. The aforementioned booster converts all JSON into ELISP byte code so Emacs can process LSP messages much faster.

I guess, the Emacs project will have to tune their JSON parser in the future.

What do you mean? The language servers are independent projects from emacs. Some are slow and some are fast. And your project size is a factor.