Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-23 11:59:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-23 11:59:25 +0400
commit34b7bff44b498d23b3dce204ecac2ca9d0c0d57b (patch)
tree4a94502a234f45d7d80c1874852086c4a0b6e8ba
parent4740dce4ecad7eb99597a820e6b5e72a17619997 (diff)
change compression level for gzip saving to 1, approx twice as fast when saving a 194mb blend file and only slightly bigger.
-rw-r--r--source/blender/blenlib/intern/fileops.c6
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;