Message ID | d392a523f239f92f1b47ec1a96885f69fdc6d8b4.1603147657.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | use fsmonitor data in git diff eliminating O(num_files) calls to lstat | expand |
Actually found a 25% improvement here on git add with this patch series
On Mon, Oct 19, 2020 at 10:47:37PM +0000, Nipunn Koorapati via GitGitGadget wrote: > From: Nipunn Koorapati <nipunn@dropbox.com> > > Test v2.29.0-rc1 this tree > ----------------------------------------------------------------------------------------------------------------- > [...] > 7519.22: add (fsmonitor=) 2.26(1.46+1.49) 2.27(1.42+1.55) +0.4% Good; no huge slow-down here. Thanks for checking! > Signed-off-by: Nipunn Koorapati <nipunn@dropbox.com> > --- > t/perf/p7519-fsmonitor.sh | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh > index 75a0cef01d..fb20fe0937 100755 > --- a/t/perf/p7519-fsmonitor.sh > +++ b/t/perf/p7519-fsmonitor.sh > @@ -169,6 +169,10 @@ test_fsmonitor_suite() { > test_perf_w_drop_caches "diff -- 10000_files (fsmonitor=$INTEGRATION_SCRIPT)" ' > git diff -- 10000_files > ' > + > + test_perf_w_drop_caches "add (fsmonitor=$INTEGRATION_SCRIPT)" ' > + git add --all > + ' > } > > test_fsmonitor_suite > -- > gitgitgadget Acked-by: Taylor Blau <me@ttaylorr.com> Thanks, Taylor
diff --git a/t/perf/p7519-fsmonitor.sh b/t/perf/p7519-fsmonitor.sh index 75a0cef01d..fb20fe0937 100755 --- a/t/perf/p7519-fsmonitor.sh +++ b/t/perf/p7519-fsmonitor.sh @@ -169,6 +169,10 @@ test_fsmonitor_suite() { test_perf_w_drop_caches "diff -- 10000_files (fsmonitor=$INTEGRATION_SCRIPT)" ' git diff -- 10000_files ' + + test_perf_w_drop_caches "add (fsmonitor=$INTEGRATION_SCRIPT)" ' + git add --all + ' } test_fsmonitor_suite