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
Follow-on consolidation of git rev-parse calls #3227
Comments
Thanks for making this issue @jwhitley . To clarify: the goal here is to reduce lazygit startup time as much as possible by reducing the number of git calls required (each git call takes ~10ms on my machine). Given that git rev-parse can take multiple arguments and return multiple values in one go, we want to try and have all the git rev-parse calls on startup condensed into a single call |
FWIW, I think it's also possible to consolidate |
Sounds good |
In #3183, @jesseduffield writes:
This is a follow-on issue to track the opportunity to further consolidate lazygit's info retrieval from git rev-parse. During #3183, Jesse observed that rev-parse can take multiple arguments and return the requested information on a line-by-line basis, which reduces overhead vs. multiple git invocations.
See
GetRepoPaths()
inpkg/commands/git_commands/repo_paths.go
for the new centralized invocation of git rev-parse (on the #3183 branch, or onmaster
once that's been merged.)The text was updated successfully, but these errors were encountered: