summaryrefslogtreecommitdiff
path: root/src/filebuf.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-04-10 12:23:55 -0700
committerVicent Marti <tanoku@gmail.com>2011-04-10 12:23:55 -0700
commita6359408a525e5ef8945d8b7a3da2a4a1c4cc424 (patch)
tree07308f3b971808d5f4ae77cb294eff2b707585b8 /src/filebuf.c
parentfff036ec159cd7fd987a87cf976b75d19b23d790 (diff)
downloadlibgit2-a6359408a525e5ef8945d8b7a3da2a4a1c4cc424.tar.gz
Use Z_BEST_SPEED for filebuf deflating
This is what Git uses by default for all deflating.
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c2
1 files changed, 1 insertions, 1 deletions
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;
}