summaryrefslogtreecommitdiff
path: root/git-cvsserver.perl
diff options
context:
space:
mode:
authorLibravatar Nicolas Pitre <nico@cam.org>2006-05-02 23:31:00 -0400
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-02 21:32:39 -0700
commit06a9f9203570d21f9ef5fe219cdde527dcdf0990 (patch)
tree7a06db8f14535b45ba0c34c2d252a2b833314554 /git-cvsserver.perl
parenttiny optimization to diff-delta (diff)
downloadtgif-06a9f9203570d21f9ef5fe219cdde527dcdf0990.tar.xz
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 'git-cvsserver.perl')
0 files changed, 0 insertions, 0 deletions