From a6359408a525e5ef8945d8b7a3da2a4a1c4cc424 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sun, 10 Apr 2011 12:23:55 -0700 Subject: Use Z_BEST_SPEED for filebuf deflating This is what Git uses by default for all deflating. --- src/filebuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filebuf.c') diff --git a/src/filebuf.c b/src/filebuf.c index dff9373f6..eb93424ef 100644 --- a/src/filebuf.c +++ b/src/filebuf.c @@ -178,7 +178,7 @@ int git_filebuf_open(git_filebuf *file, const char *path, int flags) if (flags & GIT_FILEBUF_DEFLATE_CONTENTS) { /* Initialize the ZLib stream */ - if (deflateInit(&file->zs, Z_DEFAULT_COMPRESSION) != Z_OK) { + if (deflateInit(&file->zs, Z_BEST_SPEED) != Z_OK) { error = GIT_EZLIB; goto cleanup; } -- cgit v1.2.1