author | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Dec 2007 00:05:50 +0000 (16:05 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Dec 2007 00:05:50 +0000 (16:05 -0800) | ||
commit | 7c3c79629547195d13e325ea015ce9f89bf461b5 | |
tree | b584fbf9afbbba1dd2446345a59ac197acbae73a | tree | snapshot |
parent | ef4cffde9cf45a4203be5f78cf8f025f4f694a66 | commit | diff |
blame: drop blob data after passing blame to the parent
We used to keep the blob data for each origin that has any remaining
line in the result, but this will get very costly with a huge file that
has a deep history. This patch releases the blob after we ran diff
between the child rev and its parents. When passing blame from a parent
to its parent (i.e. the grandparent), the blob data for the parent may
need to be read again, but it should be relatively cheap, thanks to
delta-base cache.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We used to keep the blob data for each origin that has any remaining
line in the result, but this will get very costly with a huge file that
has a deep history. This patch releases the blob after we ran diff
between the child rev and its parents. When passing blame from a parent
to its parent (i.e. the grandparent), the blob data for the parent may
need to be read again, but it should be relatively cheap, thanks to
delta-base cache.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c | diff | blob | history |