]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: smarter memory usage when resolving deltas
authorNicolas Pitre <nico@fluxnic.net>
Mon, 12 Apr 2010 16:11:07 +0000 (12:11 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Apr 2010 16:51:38 +0000 (09:51 -0700)
commit776ea3707a0248b9d36d696ee92beeeac5ccf1a1
treef46b55082c463f3200548cb67852e31ec42391a5
parent748af44c63ea6fec12690f1693f3dddd963e88d5
index-pack: smarter memory usage when resolving deltas

In the same spirit as commit 9892bebafe, let's avoid allocating the full
buffer for the deflated data in get_data_from_pack() in order to inflate
it.  Let's read and inflate the data in chunks instead to reduce memory
usage.

Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-index-pack.c