author | Junio C Hamano <junkio@cox.net> | |
Fri, 1 Jul 2005 00:13:07 +0000 (17:13 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Fri, 1 Jul 2005 05:33:47 +0000 (22:33 -0700) | ||
commit | c62266f37c677c1de7415ac6cf1e2eb6726590e1 | |
tree | 995538e5c635827aee1075b62d8d5b61899bbdb0 | tree | snapshot |
parent | d0efc8a71da1855c705fd2074b219bcb158b6dbd | commit | diff |
[PATCH] Avoid unnecessarily inflating and interpreting delta
This teaches packed_delta_info() that it only needs to look at
the type of the base object to figure out both type and size of
a deltified object. This saves quite a many calls to inflate()
when dealing with a deep delta chain.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This teaches packed_delta_info() that it only needs to look at
the type of the base object to figure out both type and size of
a deltified object. This saves quite a many calls to inflate()
when dealing with a deep delta chain.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
cat-file.c | diff | blob | history | |
sha1_file.c | diff | blob | history |