3 ms·
Git completion is unbearably slow for me in zsh, but fine in bash. It is a very large repo I work on, but we're talking 10s vs instant. I still use zsh though b
by jamienicol 7y ago
Git completion is unbearably slow for me in zsh, but fine in bash. It is a very large repo I work on, but we're talking 10s vs instant. I still use zsh though because it's nicer in other ways.
- m45t3r 7y agoCheck your Zsh theme. Zsh has no built-in support for git status, so themes that show git status are implementing this by themselves. One way to make this slow is to check git status synchronous, however there are ways to do this asynchronous that should be instantaneous (at the expense of showing git status later). Btw, Bash is the same. So you just said that someone that implemented your Bash theme did better than in your Zsh theme.
- jamienicol 7y agoI'm taking about tab completion when entering commands, not a theme that is displaying my status anywhere. I didn't even know "themes" existed. Your point probably stands that it's more to do with the completion scripts rather than the shells themselves though.
- zbentley 7y agoThere are absolutely some things slower in zsh/bash. Are any of those slow because of a non-upgraded machine ("they would run fast on a $50k server" doesn't count)? Or, as others in this thread have pointed out, are they slower because of flawed implementations which, unless fixed, will always be slow on any hardware?