author | Junio C Hamano <junkio@cox.net> | |
Fri, 21 Apr 2006 06:36:22 +0000 (23:36 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 21 Apr 2006 06:36:22 +0000 (23:36 -0700) | ||
commit | f527cb8c38964a90b1b13485f2ad46b72960d387 | |
tree | 2fadb4a9a01d0014945e95b031d761142c092f48 | tree | snapshot |
parent | 6a74642c500118164ec331da93ef29b1163301bc | commit | diff |
pack-objects: do not stop at object that is "too small"
Because we sort the delta window by name-hash and then size,
hitting an object that is too small to consider as a delta base
for the current object does not mean we do not have better
candidate in the window beyond it.
Noticed by Shawn Pearce, analyzed by Nico, Linus and me.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Because we sort the delta window by name-hash and then size,
hitting an object that is too small to consider as a delta base
for the current object does not mean we do not have better
candidate in the window beyond it.
Noticed by Shawn Pearce, analyzed by Nico, Linus and me.
Signed-off-by: Junio C Hamano <junkio@cox.net>
pack-objects.c | diff | blob | history |