]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5310-pack-bitmaps.sh
pack-objects: support filters with bitmaps
authorJeff King <peff@peff.net>
Fri, 14 Feb 2020 18:22:41 +0000 (13:22 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Feb 2020 18:46:22 +0000 (10:46 -0800)
commit3ab3185f999f5d0d0079ac8246edb8fca5d9d3fd
tree33cd254d4fb4370094a56e98785ebd27f780c99e
parent84243da1298890bd7370df66b754c2b252a08346
pack-objects: support filters with bitmaps

Just as rev-list recently learned to combine filters and bitmaps, let's
do the same for pack-objects. The infrastructure is all there; we just
need to pass along our filter options, and the pack-bitmap code will
decide to use bitmaps or not.

This unsurprisingly makes things faster for partial clones of large
repositories (here we're cloning linux.git):

  Test                               HEAD^               HEAD
  ------------------------------------------------------------------------------
  5310.11: simulated partial clone   38.94(37.28+5.87)   11.06(11.27+4.07) -71.6%

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
t/perf/p5310-pack-bitmaps.sh
t/t5310-pack-bitmaps.sh