-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve the way we check if refs are not pointing to commits
Fixes #775 Fixes #777 Before, each time we got a new reference, we were checking if it pointed to a commit. This incurred in a performance penalty and an increase of 2x in memory usage and 4x in allocations, as more objects were being read from the repository. Instead, now we use the already present resolveCommit to check it the moment we get the object, since we have to get it anyway. This way, we have the exact same behaviour without having any performance penalty or memory usage increase. Signed-off-by: Miguel Molina <[email protected]>
- Loading branch information
1 parent
e1f8b1d
commit 42fde01
Showing
5 changed files
with
38 additions
and
93 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
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
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