Skip to content
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

Use hooks to speed up prompt #58

Open
michaeldfallen opened this issue Sep 8, 2015 · 3 comments
Open

Use hooks to speed up prompt #58

michaeldfallen opened this issue Sep 8, 2015 · 3 comments
Milestone

Comments

@michaeldfallen
Copy link
Owner

The radar's local and remote commits can be slow, on heavy repos it can be very slow. We could use git hooks to only calculate the local and remote commits each time push, fetch, pull, commit etc events occur.

The precalculated strings could then be read from files in the .git folder quite quickly on each render.

@nicolaiskogheim
Copy link

Yes, please! I want this.

@michaeldfallen
Copy link
Owner Author

I've run some performance tests and it seems to be the git status --porcelain call (in my slowest repo the full prompt renders in 0.25s and git status takes 0.245s. I'm going to try firing an async git status and read that off disk. Perhaps that will speed things up.

@michaeldfallen michaeldfallen added this to the v0.5 milestone Oct 15, 2015
@michaeldfallen
Copy link
Owner Author

Anyone interested in this feature, I have pushed a working prototype of running the different indicators asynchronously and refreshing the prompt when ready in #83. It's another approach to solving the need this is born out of and worth a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants