-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite: avoid accessing
MutRepo::view()
when rebasing descendants
Since 94e03f5, we lazily filter out non-heads from `View`'s set of head. Accessing the `MutRepo::view()` triggers that filtering. This patch makes `DescendantRebaser` not unnecessarily do that. That speeds up the rebasing of 162 descendants in the git.git repo from ~3.6 s to ~330 ms. Rebasing 1272 descendants takes ~885 ms.
- Loading branch information
1 parent
f084a05
commit c058ffe
Showing
2 changed files
with
6 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