-
Notifications
You must be signed in to change notification settings - Fork 97
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
Sparse index: integrate with read-tree
#426
Changes from all commits
66a8bea
8bd47db
2aabbd5
edc0f60
3c54596
e6a55c8
57e8935
23c25e8
8220f59
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,7 @@ test_perf_on_all git commit -a -m A | |
test_perf_on_all git checkout -f - | ||
test_perf_on_all git reset | ||
test_perf_on_all git reset --hard | ||
test_perf_on_all git read-tree -mu HEAD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you reorder this to be early in the series, you can then advertise the results of this test in the commit message for the commit that improves the performance. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved the commit, but haven't added performance numbers yet (like with the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Performance numbers added to commit message - ~90% reduction in execution time! |
||
test_perf_on_all git checkout-index -f --all | ||
test_perf_on_all git update-index --add --remove | ||
test_perf_on_all git diff | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is that this case is rare enough that we might not even bother with it. Let's see if
git stash
ever needs this case, for instance. Thisensure_full_index()
might be a long-term solution.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since
git stash
only needsoneway_diff
(single-tree) cases to work, I'll leave theensure_full_index()
calls in for two-way and three-way merges.