forked from foriequal0/git-trim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Massive performance increase on big repo.
git2::Repository::remotes() and find_remote(..) are incredibly slow. Calling them every time for each branch is unnecessarily slow. Please note that this is not yet the best way to implement this. We are still iterating through all remote.refspecs() for each branch. Just that all Remote structs are cached. An alternative would be to work on `expand_refspec()` and create a map/index of (branch name, remote branches) once. \foriequal0#20
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters