summaryrefslogtreecommitdiff
path: root/builtin/mailsplit.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-08-14 14:14:27 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-14 12:27:53 -0700
commitced9fff75dad2578d7583ba3085970b03c66c57b (patch)
treeb73d1184e775ad9e276916dc9ea1c42efcd00f8e /builtin/mailsplit.c
parentcat-file: support "unordered" output for --batch-all-objects (diff)
downloadtgif-ced9fff75dad2578d7583ba3085970b03c66c57b.tar.xz
cat-file: use oidset check-and-insert
We don't need to check if the oidset has our object before we insert it; that's done as part of the insertion. We can just rely on the return value from oidset_insert(), which saves one hash lookup per object. This measurable speedup is tiny and within the run-to-run noise, but the result is simpler to read, too. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mailsplit.c')
0 files changed, 0 insertions, 0 deletions