]> Kevux Git Server - rit/commit
index-pack --promisor: don't check blobs
authorJonathan Tan <jonathantanmy@google.com>
Tue, 3 Dec 2024 21:52:55 +0000 (13:52 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2024 23:53:59 +0000 (08:53 +0900)
commit36198026d85848119a8eeb9286d10e795a9e0461
tree16a76b75942e9851fcd84d6ac20a1bac8b6c54c5
parent911d14203c019d52431b1197dcbf44f163eac024
index-pack --promisor: don't check blobs

As a follow-up to the parent of this commit, it was found that not
checking for the existence of blobs linked from trees sped up the fetch
from 24m47.815s to 2m2.127s. Teach Git to do that.

The tradeoff of not checking blobs is documented in a code comment.

(Blobs may also be linked from tag objects, but it is impossible to know
the type of an object linked from a tag object without looking it up in
the object database, so the code for that is untouched.)

Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/index-pack.c