diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-04-10 12:23:55 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-04-10 12:23:55 -0700 |
commit | a6359408a525e5ef8945d8b7a3da2a4a1c4cc424 (patch) | |
tree | 07308f3b971808d5f4ae77cb294eff2b707585b8 /src/filebuf.c | |
parent | fff036ec159cd7fd987a87cf976b75d19b23d790 (diff) | |
download | libgit2-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.c | 2 |
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; } |