change compression level for gzip saving to 1, approx twice as fast when saving a 194mb blend file and only slightly bigger.

This commit is contained in:
Campbell Barton
2011-08-23 07:59:25 +00:00
parent 4740dce4ec
commit 34b7bff44b

View File

@@ -69,8 +69,10 @@ int BLI_gzip(const char *from, const char *to) {
int readsize = 0;
int rval= 0, err;
gzFile gzfile;
gzfile = gzopen(to, "wb");
/* level 1 is very close to 3 (the default) in terms of file size,
* but about twice as fast, best use for speedy saving - campbell */
gzfile = gzopen(to, "wb1");
if(gzfile == NULL)
return -1;