-
Notifications
You must be signed in to change notification settings - Fork 330
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repo: enforce view invariants lazily
It's very slow to remove non-heads from the set of heads every time we add an head. For example, in the git.git repo, a no-op `jj git import` takes ~15 s. This patch changes makes us just mark the set of heads dirty when a commit has been added and then we remove non-heads when needed. That cuts down the `jj git import` time to ~200 ms.
- Loading branch information
1 parent
f1bfe85
commit 94e03f5
Showing
1 changed file
with
59 additions
and
45 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