Lambda in lsp--create-filter-function
creates tons of GC pressure
#4677
Labels
lsp--create-filter-function
creates tons of GC pressure
#4677
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
The OmniSharp language server outputs a ton of diagnostic messages because it scans the entire project at startup. Due to the filter code performing substring operations on these large chunks of text, a lot of garbage is produced which makes Emacs extremely sluggish because it spends a lot of time garbage collecting. This persists until Emacs is able to consume all the input from the language server (which can take several minutes).
Steps to reproduce
lsp
with the OmniSharp language serverExpected behavior
I expect some lag from Emacs being pelted with diagnostics but it should still usable.
Which Language Server did you use?
OmniSharp
OS
Linux
Error callstack
No response
Anything else?
Memory profile:
("interpreted-function 9D1" points to this lambda)
The text was updated successfully, but these errors were encountered: