]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/index-pack.c
index-pack: smarter memory usage when appending objects
authorNicolas Pitre <nico@fluxnic.net>
Mon, 12 Apr 2010 20:50:35 +0000 (16:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Apr 2010 22:30:58 +0000 (15:30 -0700)
commit7734d7f2f6e57973bce3d7b2af815ac737f4637c
treeb5a76d4b17cb50903f46ccf1a592f124a3245048
parent7ce4721ad8c65ab4d9a9e94176001f12bb4b5218
index-pack: smarter memory usage when appending objects

In the same spirit as commit 9892bebafe, let's avoid allocating the full
buffer for the deflated data in write_compressed() in order to write it.
Let's deflate and write 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