Revision: 39642
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39642
Author:   campbellbarton
Date:     2011-08-23 07:59:25 +0000 (Tue, 23 Aug 2011)
Log Message:
-----------
change compression level for gzip saving to 1, approx twice as fast when saving 
a 194mb blend file and only slightly bigger.

Modified Paths:
--------------
    trunk/blender/source/blender/blenlib/intern/fileops.c

Modified: trunk/blender/source/blender/blenlib/intern/fileops.c
===================================================================
--- trunk/blender/source/blender/blenlib/intern/fileops.c       2011-08-22 
22:26:25 UTC (rev 39641)
+++ trunk/blender/source/blender/blenlib/intern/fileops.c       2011-08-23 
07:59:25 UTC (rev 39642)
@@ -69,8 +69,10 @@
        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;
        

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to