aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2014-03-27 18:22:07 +0400
committerJunio C Hamano <gitster@pobox.com>2014-03-27 11:52:35 -0700
commit12cd81743dc4645ef909b0c38582f5714c9a8ff7 (patch)
treeac49c4bc72a1efd191ef859c74a2fd6f0632e73d /Makefile
parentb9081a657446ac2c5e2129de183edb41d4b4f4fb (diff)
downloadgit-12cd81743dc4645ef909b0c38582f5714c9a8ff7.tar.gz
git-12cd81743dc4645ef909b0c38582f5714c9a8ff7.tar.xz
tree-diff: reuse base str(buf) memory on sub-tree recursion
Instead of allocating it all the time for every subtree in ll_diff_tree_sha1, let's allocate it once in diff_tree_sha1, and then all callee just use it in stacking style, without memory allocations. This should be faster, and for me this change gives the following slight speedups for git log --raw --no-abbrev --no-renames --format='%H' navy.git linux.git v3.10..v3.11 before 0.618s 1.903s after 0.611s 1.889s speedup 1.1% 0.7% Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions