summaryrefslogtreecommitdiff
path: root/t/t9804-git-p4-label.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2013-08-09 17:39:56 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-08-13 09:09:03 -0700
commit4c70cfbfbc2da8d0e4f94b73e37b4020704a498b (patch)
tree9b1bfbedc1f2bcc1bba957de41c08d51ae94b33c /t/t9804-git-p4-label.sh
parentcontacts: gather all blame sources prior to invoking git-blame (diff)
downloadtgif-4c70cfbfbc2da8d0e4f94b73e37b4020704a498b.tar.xz
contacts: reduce git-blame invocations
git-contacts invokes git-blame once for each patch hunk it encounters. No attempt is made to consolidate invocations for multiple hunks referencing the same file at the same revision. This can become expensive quickly. Reduce the number of git-blame invocations by taking advantage of the ability to specify multiple -L ranges for a single invocation. Without this patch, on a randomly chosen range of commits: % time git-contacts 25fba78d36be6297^..23c339c0f262aad2 >/dev/null real 0m6.142s user 0m5.429s sys 0m0.356s With this patch: % time git-contacts 25fba78d36be6297^..23c339c0f262aad2 >/dev/null real 0m2.285s user 0m2.093s sys 0m0.165s Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9804-git-p4-label.sh')
0 files changed, 0 insertions, 0 deletions