forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
preload-index: avoid lstat for skip-worktree items #955
Merged
dscho
merged 1 commit into
git-for-windows:master
from
jeffhostetler:jeffhostetler/preload_index_perf
Nov 15, 2016
Merged
preload-index: avoid lstat for skip-worktree items #955
dscho
merged 1 commit into
git-for-windows:master
from
jeffhostetler:jeffhostetler/preload_index_perf
Nov 15, 2016
Conversation
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
Teach preload-index to avoid lstat() calls for index-entries with skip-worktree bit set. This is a performance optimization. During a sparse-checkout, the skip-worktree bit is set on items that were not populated and therefore are not present in the worktree. The per-thread preload-index loop performs a series of tests on each index-entry as it attempts to compare the worktree version with the index and mark them up-to-date. This patch short-cuts that work. On a Windows 10 system with a very large repo (450MB index) and various levels of sparseness, performance was improved in the {preloadindex=true, fscache=false} case by 80% and in the {preloadindex=true, fscache=true} case by 20% for various commands. Signed-off-by: Jeff Hostetler <[email protected]>
Awesome! Thank you so much! |
Thanks for the quick turnaround! |
dscho
pushed a commit
that referenced
this pull request
Nov 16, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to git-for-windows/build-extra
that referenced
this pull request
Nov 16, 2016
The preload-index feature [now behaves much better in conjunction with sparse checkouts](git-for-windows/git#955). Signed-off-by: Johannes Schindelin <[email protected]>
dscho
pushed a commit
that referenced
this pull request
Nov 17, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
pushed a commit
that referenced
this pull request
Nov 17, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
pushed a commit
that referenced
this pull request
Nov 18, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Nov 24, 2016
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
dscho
pushed a commit
that referenced
this pull request
Nov 29, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Nov 29, 2016
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
dscho
pushed a commit
that referenced
this pull request
Nov 30, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Dec 6, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Dec 12, 2016
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Jan 11, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Jan 25, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Jan 25, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Jan 25, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Jan 25, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Feb 1, 2017
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 2, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 2, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 2, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 2, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Feb 2, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 3, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 4, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 4, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 4, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Feb 4, 2017
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Feb 21, 2017
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 23, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Feb 25, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Mar 1, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Mar 16, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
to dscho/git
that referenced
this pull request
Mar 20, 2017
…er/preload_index_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Mar 20, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Mar 21, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Mar 24, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Mar 26, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Mar 28, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Apr 12, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
dscho
added a commit
that referenced
this pull request
Apr 26, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
Apr 26, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
git-for-windows-ci
pushed a commit
that referenced
this pull request
May 10, 2017
…x_perf preload-index: avoid lstat for skip-worktree items
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Teach preload-index to avoid lstat() calls for index-entries
with skip-worktree bit set. This is a performance optimization.
During a sparse-checkout, the skip-worktree bit is set on items
that were not populated and therefore are not present in the
worktree. The per-thread preload-index loop performs a series
of tests on each index-entry as it attempts to compare the
worktree version with the index and mark them up-to-date.
This patch short-cuts that work.
On a Windows 10 system with a very large repo (450MB index)
and various levels of sparseness, performance was improved
in the {preloadindex=true, fscache=false} case by 80% and
in the {preloadindex=true, fscache=true} case by 20% for various
commands.
Signed-off-by: Jeff Hostetler [email protected]