]> git.ipfire.org Git - thirdparty/git.git/commit
multi-pack-index: report progress during 'verify'
authorDerrick Stolee <dstolee@microsoft.com>
Thu, 13 Sep 2018 18:02:26 +0000 (11:02 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2018 20:49:41 +0000 (13:49 -0700)
commit144d70333e826ea2480d60eb2298013eeef0cabf
tree49b0a1725156f777f902370ac1fc27856225babb
parentcc6af73c029da23f7b2c98c60e4fba1ca2db215b
multi-pack-index: report progress during 'verify'

When verifying a multi-pack-index, the only action that takes
significant time is checking the object offsets. For example,
to verify a multi-pack-index containing 6.2 million objects in
the Linux kernel repository takes 1.3 seconds on my machine.
99% of that time is spent looking up object offsets in each of
the packfiles and comparing them to the multi-pack-index offset.

Add a progress indicator for that section of the 'verify' verb.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
midx.c