-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Very slow on remote filesystems #885
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
Please either close the issue or identify a use-case that's not addressed by the existing functionality. |
Sure, it can be solved with the |
How? I guess this is going to be OS-dependent? We can do OS-dependent code (branching on
What's "in parallel" in this context?
Not yet; we haven't yet finished evaluating the feature request (now that we know there is one). As to why I wrote what I did, see https://producingoss.com/en/you-are-what-you-write.html#writing-tone. |
For example by implementing #361. This could be combined with blacklisting a directory when it times out multiple times in a row.
I don't think it's needed to explicitly detect remote file systems as some might be fast enough. I prefer the above method.
That the typing of text isn't inhibited by a slow file system. When you are cd'd in a slow directory, all typing seems to be slowed down, making it almost if not entirely impossible to run a command (even if the command doesn't need the file system).
Thanks for taking the time to evaluate the options :) |
The issue here is that the command-line is highlighted from square one on every keypress. You can probably workaround this right now by using the stty(1) flow control keys (default Ctrl+S and Ctrl+Q) while typing a command-line that involves a slow-to-highlight word: So, that being said, let's first enumerate all the different ideas here:
I'm sure more ideas can be thought of. Let's see what others have to say :) |
So that would involve the user pressing those hotkeys, right? I don't think that's a good solution. I'm striving for zsh-syntax-highlighting to work out of the box.
I think the timeout should be something like 30ms, otherwise typing might still feel sluggish.
This would be good in combination with the timeout. Although, the timeout should still not be big enough to disrupt the user, since it will happen at least once for every directory they are in (unless you immediately blacklist all subdirectories, which would be an option).
Another option would be to disable syntax highlighting for if a directory exists when it times out multiple times, since that's the part where it times out. |
It seems like fish is using a background thread: https://github.com/fish-shell/fish-shell/blob/master/src/highlight.cpp. This might be the cleanest solution after all. |
When cd'd into a remote filesystem, the syntax highlighter can be very slow, impacting how quickly text appears in the prompt. This wouldn't be an issue if the highlighting was turned off in this case.
Might be solved with #361
The text was updated successfully, but these errors were encountered: