diff options
author | Nicolas Pitre <nico@cam.org> | 2006-05-02 23:31:00 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-02 21:32:39 -0700 |
commit | 06a9f9203570d21f9ef5fe219cdde527dcdf0990 (patch) | |
tree | 7a06db8f14535b45ba0c34c2d252a2b833314554 /pack-objects.c | |
parent | 2d08e5dd730680f7f8645a6326ec653435e032df (diff) | |
download | git-06a9f9203570d21f9ef5fe219cdde527dcdf0990.tar.gz |
improve diff-delta with sparse and/or repetitive data
It is useless to preserve multiple hash entries for consecutive blocks
with the same hash. Keeping only the first one will allow for matching
the longest string of identical bytes while subsequent blocks will only
allow for shorter matches. The backward matching code will match the
end of it as necessary.
This improves both performances (no repeated string compare with long
successions of identical bytes, or even small group of bytes), as well
as compression (less likely to need random hash bucket entry culling),
especially with sparse files.
With well behaved data sets this patch doesn't change much.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'pack-objects.c')
0 files changed, 0 insertions, 0 deletions