author | Nicolas Pitre <nico@fluxnic.net> | |
Mon, 12 Apr 2010 16:11:07 +0000 (12:11 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 12 Apr 2010 16:51:38 +0000 (09:51 -0700) | ||
commit | 776ea3707a0248b9d36d696ee92beeeac5ccf1a1 | |
tree | f46b55082c463f3200548cb67852e31ec42391a5 | tree | snapshot |
parent | 748af44c63ea6fec12690f1693f3dddd963e88d5 | commit | diff |
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>
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 | diff | blob | history |