summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2006-04-29 04:58:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-29 05:41:31 (GMT)
commit3dc5a9e4cdcc7124c665a050547d1285d86a421f (patch)
tree366199411e77b7cf20f478c1bfa277382c000289 /Makefile
parentf6c7081aa97aa67baa06390a1ef36088c33bf010 (diff)
downloadgit-3dc5a9e4cdcc7124c665a050547d1285d86a421f.zip
git-3dc5a9e4cdcc7124c665a050547d1285d86a421f.tar.gz
git-3dc5a9e4cdcc7124c665a050547d1285d86a421f.tar.bz2
replace adler32 with Rabin's polynomial in diff-delta
This brings another small repacking speedup for sensibly the same pack size. On the Linux kernel repo, git-repack -a -f is 3.7% faster for a 0.4% larger pack. Credits to Geert Bosch who brought the Rabin's polynomial idea to my attention. This also eliminate the issue of adler32() reading past the data buffer, as noticed by Johannes Schindelin. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d9a3a82..38c980b 100644
--- a/Makefile
+++ b/Makefile
@@ -609,7 +609,7 @@ test-date$X: test-date.c date.o ctype.o
$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) test-date.c date.o ctype.o
test-delta$X: test-delta.c diff-delta.o patch-delta.o
- $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $^ -lz
+ $(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $^
check:
for i in *.c; do sparse $(ALL_CFLAGS) $(SPARSE_FLAGS) $$i || exit; done