22 ms·
Are you on Emacs 27 yet? Below that Emacs encodes JSON in Elisp, which is extremely slow and makes LSP unusable.
by bananaface 6y ago
Are you on Emacs 27 yet? Below that Emacs encodes JSON in Elisp, which is extremely slow and makes LSP unusable.
- globular-toast 6y agoUpgrading to 27 made no difference for me.
- bananaface 6y agoIn that case something dramatic is eclipsing it, it should be noticeable. It may be the GC threshold. There's about 5 settings recommended for perf issues. https://emacs-lsp.github.io/lsp-mode/page/performance/ https://emacs-lsp.github.io/lsp-mode/page/performance/ Ordinarily I'd ignore rabbit holes like this but LSP is unusually useful. It's worth a shot.
- globular-toast 6y agoI've done all of that. Still slow. I think the problem is other people have lower standards than I do when it comes to speed.
- JacksonGariety 6y agoThere's a command called M-x lsp-doctor that will tell you if you meet all the performance requirements for LSP mode. Among those is emacs 27 compiled with native json support (you can build emacs 27 without native json).