author | Junio C Hamano <junkio@cox.net> | |
Sun, 19 Mar 2006 21:43:42 +0000 (13:43 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 19 Mar 2006 21:43:42 +0000 (13:43 -0800) | ||
commit | 67686d95044e56475669ff1306448e41a794a865 | |
tree | d8565eb74edeb732cd1efb4b68bbc242a7e7d118 | tree | snapshot |
parent | 2b1c0ef2e5d103efacb535f32fb142114490dc33 | commit | diff |
unpack_delta_entry(): reduce memory footprint.
Currently we unpack the delta data from the pack and then unpack
the base object to apply that delta data to it. When getting an
object that is deeply deltified, we can reduce memory footprint
by unpacking the base object first and then unpacking the delta
data, because we will need to keep at most one delta data in
memory that way.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Currently we unpack the delta data from the pack and then unpack
the base object to apply that delta data to it. When getting an
object that is deeply deltified, we can reduce memory footprint
by unpacking the base object first and then unpacking the delta
data, because we will need to keep at most one delta data in
memory that way.
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c | diff | blob | history |