summaryrefslogtreecommitdiff
path: root/t/perf/p5310-pack-bitmaps.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-07-13 02:42:17 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-28 10:14:34 -0700
commitb794ebeac9151af4a9136ef28a22a06c2afb17cc (patch)
tree6ca634eb0048e97f868992642169b9e1cd99f387 /t/perf/p5310-pack-bitmaps.sh
parentobject_as_type: set commit index (diff)
downloadtgif-b794ebeac9151af4a9136ef28a22a06c2afb17cc.tar.xz
diff-tree: avoid lookup_unknown_object
We generally want to avoid lookup_unknown_object, because it results in allocating more memory for the object than may be strictly necessary. In this case, it is used to check whether we have an already-parsed object before calling parse_object, to save us from reading the object from disk. Using lookup_object would be fine for that purpose, but we can take it a step further. Since this code was written, parse_object already learned the "check lookup_object" optimization, so we can simply call parse_object directly. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/perf/p5310-pack-bitmaps.sh')
0 files changed, 0 insertions, 0 deletions