aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/compress.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/operation/compress.go')
-rw-r--r--weed/operation/compress.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/operation/compress.go b/weed/operation/compress.go
index a28fb33ec..7190eeeb2 100644
--- a/weed/operation/compress.go
+++ b/weed/operation/compress.go
@@ -72,7 +72,7 @@ func IsGzippableFileType(ext, mtype string) (shouldBeZipped, iAmSure bool) {
func GzipData(input []byte) ([]byte, error) {
buf := new(bytes.Buffer)
- w, _ := gzip.NewWriterLevel(buf, flate.BestCompression)
+ w, _ := gzip.NewWriterLevel(buf, flate.BestSpeed)
if _, err := w.Write(input); err != nil {
glog.V(2).Infoln("error compressing data:", err)
return nil, err