summaryrefslogtreecommitdiff
path: root/t/perf/README
diff options
context:
space:
mode:
authorAlex Vandiver <alexmv@dropbox.com>2020-10-20 13:40:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-10-20 19:52:21 (GMT)
commitc9052a8392878d9e38381db5d2172f7f8f7272a3 (patch)
tree6b963049a194fe573d712e33709a17e57ecd4c70 /t/perf/README
parent430cabb104103251958ac0739509e0a542e5c774 (diff)
downloadgit-c9052a8392878d9e38381db5d2172f7f8f7272a3.zip
git-c9052a8392878d9e38381db5d2172f7f8f7272a3.tar.gz
git-c9052a8392878d9e38381db5d2172f7f8f7272a3.tar.bz2
fsmonitor: use fsmonitor data in `git diff`
With fsmonitor enabled, the first call to match_stat_with_submodule calls refresh_fsmonitor, incurring the overhead of reading the list of updated files -- but run_diff_files does not respect the CE_FSMONITOR_VALID flag. Make use of the fsmonitor extension to skip lstat() calls on files that fsmonitor judged as unmodified. Notably, this change improves performance of the git shell prompt when GIT_PS1_SHOWDIRTYSTATE is set. Signed-off-by: Alex Vandiver <alexmv@dropbox.com> Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/README')
0 files changed, 0 insertions, 0 deletions