-
-
Notifications
You must be signed in to change notification settings - Fork 390
Massive performance regression from 1.8.0.0 to 1.9.0.0. #3476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just tried HLS 1.9.1.0. Unfortunately, the problem remains unresolved. Please reopen this issue, I don't have the permissions to do this. |
@fendor The processing time is in the same order of magnitude as reported in #3458, but I don't see a relation between the processing time and the number of files open, and the problem occurs with both GHC-8.10.7 and GHC-9.2.5. According to the debug log, the processing taking place after each keystroke ( |
It turns out that SublimeLSP actually is able to support the |
Closing since it seems like a dupe |
Your environment
macOS (Catalina/Intel i7, Ventura/Apple M2 Max), GHC 8.10.7, GHC 9.2.5, Stack projects, Sublime Text/LSP, HLS 1.9.0.0 with default config. GHC, HLS and Stack installed via ghcup.
Steps to reproduce
Open a project, wait for HLS startup to complete, edit code.
Expected behaviour
Instant feedback from HLS within split seconds, as with 1.8.0.0.
Actual behaviour
HLS 1.9.0.0 takes several seconds to respond to each keystroke, showing a progress message ("Processing 123/199") which hangs from time to time and starts over from the beginning multiple times while typing.
The bigger the project, the slower the response. Observed response times per keystroke go from 2-3 seconds with a 35 module project up to 10-20s (!) when there are a few hundred modules in the project.
The processing time seems to accumulate with each keystroke, even from trivial changes like adding whitespace. Typing and HLS feedback (diagnostics, autocompletions) go out of sync and sometimes one has to wait for a minute (!) or something like that before HLS settles down and feedback appears.
All of this makes 1.9.0.0 kind of unusable, especially for larger projects.
What was added to HLS that makes it so painfully slow? Is there a setting to disable this to get back the split second speed of 1.8.0.0?
The text was updated successfully, but these errors were encountered: