author | Brian Downing <bdowning@lavos.net> | |
Thu, 12 Jul 2007 12:55:48 +0000 (07:55 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 12 Jul 2007 21:32:35 +0000 (14:32 -0700) | ||
commit | 11779e79078c9da604753e570d02134c8d4bae6a | |
tree | 27449276ffd360c6947fe778d526934b6348a12f | tree | snapshot |
parent | a1dab41af4c575bb72231c73df26ecb2af4814d6 | commit | diff |
Support fetching the memory usage of a delta index
Delta indices, at least on 64-bit platforms, tend to be larger than
the actual uncompressed data. As such, keeping track of this storage
is important if you want to successfully limit the memory size of your
pack window.
Squirrel away the total allocation size inside the delta_index struct,
and add an accessor "sizeof_delta_index" to access it.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Delta indices, at least on 64-bit platforms, tend to be larger than
the actual uncompressed data. As such, keeping track of this storage
is important if you want to successfully limit the memory size of your
pack window.
Squirrel away the total allocation size inside the delta_index struct,
and add an accessor "sizeof_delta_index" to access it.
Signed-off-by: Brian Downing <bdowning@lavos.net>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
delta.h | diff | blob | history | |
diff-delta.c | diff | blob | history |