-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Completion takes 10-15 seconds to show on on wsl archlinux #1765
Comments
Can you share the output of "all $paths", and tell me if it gets better if
you manually set paths to be a smaller list?
Windows tends to accumulate a lot of directories in its PATH, which is not
a good combination with relatively slow disk IO...
|
Oh, and WSL by default inherits Windows's PATH I think, and IO is even
slower across the subsystem boundary.
|
Is redefining |
I'd recommend that you use it as a workaround for now (most of the Windows
binaries are probably not that useful from WSL) but I'll look into adding
caching.
|
Okay, where can I add a note for WSL users, until the caching mechanism is implemented? Because I thought it was a bug in Elvish. Other WSL users might face a similar issue and think it's a problem with Elvish. I think documenting this temporary workaround would be a good idea, what do you think? |
I guess having this issue in the issue tracker is good enough for now. |
Then I will leave this issue open, Thanks for helping out. |
That is because you have removed paths that require WSL to map Unix filesystem operations to Windows filesystem operations. This is fundamentally not an Elvish problem. You should see this slowdown in any command run in a WSL environment (e.g., the |
It is still on Elvish to make the default experience better. Right now the UI would entirely freeze while waiting for the completion results. Also, I think you're supposed to respond to my comment regarding caching instead of @Ultra-Code, who was just reporting that their experience. |
I've come across this too, also running in WSLv2. It's not a pleasant experience for my first time trying The reason it's so notable is that elvish command completion is 3-6x slower than |
sample completion on asciinema.
To reproduce, on wsl archlinux
The text was updated successfully, but these errors were encountered: