Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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 22:52:35 +0400
commit12cd81743dc4645ef909b0c38582f5714c9a8ff7 (patch)
treeac49c4bc72a1efd191ef859c74a2fd6f0632e73d /configure.ac
parentb9081a657446ac2c5e2129de183edb41d4b4f4fb (diff)
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 'configure.ac')
0 files changed, 0 insertions, 0 deletions