-
Notifications
You must be signed in to change notification settings - Fork 21
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
Speed up checking #111
Comments
Hi, @ndmitchell Currently there is no But the loading time on my side is relatively acceptable, do you work with an iPKG based Idris project or a standalone Idris file? Can you give me the code snippets which you found the loading time is quite long? Thanks in advance! |
Probably we should fire an issue for this on Idris upstream repository. |
I work with idris.exe on Windows 10, downloaded from the website and unpacked (not compiled). I'm working on a single Idris file, namely:
After hitting |
Sorry for the delay, I will do some investigation here. |
Hi @ndmitchell, sorry for the huge delay. I look at this issue again and find out the reason under the hood. The extension will kill the Idris process every time when the typechecking process succeeds because of this issue here #52, so basically, you have to wait for the Idris process getting up again every time when you run the typechecking command, that will cost you around 2-3 seconds. |
Perhaps kill the Idris process every N evaluations, where N is ~1000 or similar? |
@ndmitchell Good idea, I will do that, and the N will also be configurable then. |
@ndmitchell 1000 times is too large for this, the memory leaking issue will happen every 50 times of continuous type checking I guess, so I set the default continues type checking times to 10 here. |
Do you still think that adding a |
@clayrat Yes, I think so. I'm not familiar the underlying implementation of IDE protocol, but a |
Having experimented with checking in VS Code, versus having the Idris interactive editor open, I found the interactive editor for
:r
was instant, but the Idris plugin is pretty slow. Is that because it's reloading from scratch each time? Any way to speed it up?The text was updated successfully, but these errors were encountered: