summaryrefslogtreecommitdiff
path: root/cache-tree.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2016-01-18 15:02:59 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-01-19 09:55:04 -0800
commit9b21a34a968080873519a927afd9c2570f464785 (patch)
tree212fcc4f193939bcee99f8f38396813bc6a3d6f7 /cache-tree.h
parentshortlog: optimize out useless "<none>" normalization (diff)
downloadtgif-9b21a34a968080873519a927afd9c2570f464785.tar.xz
shortlog: optimize out useless string list
If we are in "--summary" mode, then we do not care about the actual list of subject onelines associated with each author. We care only about the number. So rather than store a string-list for each author full of "<none>", let's just keep a count. This drops my best-of-five for "git shortlog -ns HEAD" on linux.git from: real 0m5.194s user 0m5.028s sys 0m0.168s to: real 0m5.057s user 0m4.916s sys 0m0.144s That's about 2.5%. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions