delta-islands: free island_marks and bitmaps
commit647982bb7171b2409f2a90da245b8a31913f930f
authorEric Wong <e@80x24.org>
Fri, 3 Feb 2023 23:44:30 +0000 (3 23:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 4 Feb 2023 02:01:46 +0000 (3 18:01 -0800)
tree07573d1e5c8b2117fbe301ccd5b8c67415ea589f
parent844ede312b4e988881b6e27e352f469d8ab80b2a
delta-islands: free island_marks and bitmaps

On my mirror of linux.git forkgroup with 780 islands, this saves
nearly 4G of heap memory in pack-objects.  This savings only
benefits delta island users of pack bitmaps, as the process
would otherwise be exiting anyways.

However, there's probably not many delta island users, but the
majority of delta island users would also be pack bitmaps users.

Signed-off-by: Eric Wong <e@80x24.org>
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c
delta-islands.c
delta-islands.h