-
Notifications
You must be signed in to change notification settings - Fork 5
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
hg_prompt is slow for large repos #14
Comments
See #15 for a fix for branch invocation. For stat invocation, I am not sure there is an easy fix. I personally just ended up removing it from my local prompt.gem, perhaps it's worth adding a base.conf.sh variable to conditionally execute it. |
Thanks for filing, yes Also (as you may be aware) these expensive functions are cached by http://github.com/dimo414/bash-cache, so the slowness shouldn't be as noticeable in a shell that's actively being used. Tuning the cache duration might be an easy improvement, in addition to investigating better implementations.
FWIW the intended way to do so is to remove it from the |
Agreed, bash-cache is amazing! I am just pushing some general changes I made to profilegem, and thought some of these changes are generic / good enough to be shared. I do keep hg_prompt in ENV_INFO; however I removed the call to P.S. speaking of hg_prompt, it may be worth including |
Gotcha, yes customizing the implementation of |
It boils down to two invocations:
hg branch
andhg stat
. Both can be significantly slow for large repos which makes it difficult to use prompt.gem there.The text was updated successfully, but these errors were encountered: