]> git.ipfire.org Git - thirdparty/git.git/commit
delta-islands: free island-related data after use
authorEric Wong <e@80x24.org>
Thu, 17 Nov 2022 23:06:58 +0000 (23:06 +0000)
committerTaylor Blau <me@ttaylorr.com>
Fri, 18 Nov 2022 23:30:49 +0000 (18:30 -0500)
commit7025f54c40672f5253969e17ad81b1f511fbb04b
treeff41f766b4a7939c661257fd50a0e0037c175014
parenteea7033409a0ed713c78437fc76486983d211e25
delta-islands: free island-related data after use

On my use case involving 771 islands of Linux on kernel.org,
this reduces memory usage by around 25MB.  The bulk of that
comes from free_remote_islands, since free_config_regexes only
saves around 40k.

This memory is saved early in the memory-intensive pack process,
making it available for the remainder of the long process.

Signed-off-by: Eric Wong <e@80x24.org>
Co-authored-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
delta-islands.c