author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 14 Jul 2008 02:07:44 +0000 (22:07 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Jul 2008 13:27:09 +0000 (06:27 -0700) | ||
commit | f41aebd46998c8b6df3733196d55aeb7162b3df6 | |
tree | 922a40c6da6bfb2c102ceb2b051e949181d8da65 | tree | snapshot |
parent | 191a8e32b38c7ff0dd884df7bd323b7a5bd4336c | commit | diff |
index-pack: Refactor base arguments of resolve_delta into a struct
We need to discard base objects which are not recently used if our
memory gets low, such as when we are unpacking a long delta chain
of a very large object.
To support tracking the available base objects we combine the
pointer and size into a struct. Future changes would allow the
data pointer to be free'd and marked NULL if memory gets low.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We need to discard base objects which are not recently used if our
memory gets low, such as when we are unpacking a long delta chain
of a very large object.
To support tracking the available base objects we combine the
pointer and size into a struct. Future changes would allow the
data pointer to be free'd and marked NULL if memory gets low.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
index-pack.c | diff | blob | history |