diff options
author | Jeff King <peff@peff.net> | 2016-01-18 15:02:59 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-19 09:55:04 -0800 |
commit | 9b21a34a968080873519a927afd9c2570f464785 (patch) | |
tree | 212fcc4f193939bcee99f8f38396813bc6a3d6f7 /mailinfo.h | |
parent | shortlog: optimize out useless "<none>" normalization (diff) | |
download | tgif-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 'mailinfo.h')
0 files changed, 0 insertions, 0 deletions