-
Notifications
You must be signed in to change notification settings - Fork 496
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
Neovide takes a long time to launch on Windows 11 #2024
Comments
Hi, thanks for reporting! I believe the relevant change comes from #1946, specifically the delay of the fork and window creation until the neovim instance has been constructed (and confirmed its versions matches). Could you (or someone who can reproduce it, I'm not on Windows) test before and after #1946? If it's not fast before it either, could you try a release where it worked fine and If #1946 is the cause, the reason for the move was to be able to detect Neovim errors before real launch and still print them if possible. A feasable approach for solving could be imo constructing the neovim instance on the neovim comms thread like before if one of both:
However, I don't think caching would be a good solution, specifically since it's unclear when the cache should be invalidated. |
Hi, thanks for replying. I already did bisect it, I just linked to the master commit instead of PR. It is indeed #1946 as commits before its merge are fast :) I have no objections to your proposed solution. |
...wow, I should read more thoroughly, I apologize! The first check should be relatively trivial, and we did discuss doing something like the second check for something else (?) on the Discord anyway, I'll see what I can hack up. Maybe I'll do it on the weekend. |
No problem, thanks for all your hard work! <3 |
It looks like before those changes it started the WSL two times. Once for Anyway. I don't think a failing or non-failing command should be that much different, since it's the startup time of wsl.exe that matter. So, the end result is the same as calling wsl.exe twice. But the difference is that it now calls wsl three times by default, one for You can get rid of one of them by specifying the path to nvim, which should speed it up a bit. But if your goal is fast opening of files, then perhaps another approach is more suitable, launching WSL will always be slow whatever we do. One way to do it, is to keep Neovide running the whole day, and use https://github.com/mhinz/neovim-remote to open the files. That's what I use myself when I'm on Windows, and I even have the git editor configured to use that. EDIT. I think we can get rid of |
For me, a temporary solution is that, in "windows terminal" settings, set default terminal application to "windows console host" rather than the "windows terminal". |
Describe the bug
Neovide takes a long time to launch on Windows 11 when launched using the icon. I haven't measured it but it's around 2 seconds compared to less than 1 second it took before 0.11.2, so it's ~2-3 times slower.
I bisected a bit and the culprit seems to be 937decd. It looks like on Win11, this approach has to launch the console first to check nvim version (and I think it's even launched twice, as there are two windows that appear and disappear before Neovide itself launches), and on Win11 this takes a really long time.
Oh, and it also launches a bit longer than pre-0.11.2 when launched from the command line, but it's not as dramatic compared to launching from the icon.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would like the previous startup time back, please. One of the main reasons I'm using modal editors is that they launch extremely quickly. If not by reverting to the previous method on Windows, then maybe by caching the information received using the new method or by providing an option to specify it manually so that Neovide doesn't have to check it every time?
Desktop (please complete the following information):
Please run
neovide --log
and paste the contents of the.log
file created in the current directory here:Surely that's not a real requirement, it's like 0.5 MB... attached instead.
neovide_rCURRENT.log
The text was updated successfully, but these errors were encountered: