diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-23 11:59:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-23 11:59:25 +0400 |
commit | 34b7bff44b498d23b3dce204ecac2ca9d0c0d57b (patch) | |
tree | 4a94502a234f45d7d80c1874852086c4a0b6e8ba /source/blender/blenlib/intern/fileops.c | |
parent | 4740dce4ecad7eb99597a820e6b5e72a17619997 (diff) |
change compression level for gzip saving to 1, approx twice as fast when saving a 194mb blend file and only slightly bigger.
Diffstat (limited to 'source/blender/blenlib/intern/fileops.c')
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index 2e0f4b483b1..3299752646b 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -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; |