summaryrefslogtreecommitdiff
path: root/tests-clar/diff/tree.c
diff options
context:
space:
mode:
authorDavid Michael Barr <b@rr-dav.id.au>2012-09-12 14:26:31 +1000
committerDavid Michael Barr <b@rr-dav.id.au>2012-09-13 09:31:24 +1000
commitab8a0402aeac9767e5bb1b022a6c9ad27cf78f32 (patch)
tree9bdcdeaf9c3ddf5769435cd6f4097f7ac59b5711 /tests-clar/diff/tree.c
parent21d847d38ffd5055ffbcaabebf115edbee8e8b94 (diff)
downloadlibgit2-ab8a0402aeac9767e5bb1b022a6c9ad27cf78f32.tar.gz
odb_pack: try lookup before refreshing packs
This reduces the rate of syscalls for the common case of sequences of object reads from the same pack. Best of 5 timings for libgit2_clar before this patch: real 0m5.375s user 0m0.392s sys 0m3.564s After applying this patch: real 0m5.285s user 0m0.356s sys 0m3.544s 0.6% improvement in system time. 9.2% improvement in user time. 1.7% improvement in elapsed time. Confirmed a 0.6% reduction in number of system calls with strace. Expect greater improvement for graph-traversal with large packs.
Diffstat (limited to 'tests-clar/diff/tree.c')
0 files changed, 0 insertions, 0 deletions