diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-04-07 11:01:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-04-07 11:01:28 -0700 |
| commit | a32abda1a3fb696687739805faa1f5444d86c5fa (patch) | |
| tree | 0eec4f093ebff7c8d20d290bad92c048bce47c89 /weed/operation/compress.go | |
| parent | c731d9be6d28a661037bbd03c0762d0819f6fb7a (diff) | |
| download | seaweedfs-a32abda1a3fb696687739805faa1f5444d86c5fa.tar.xz seaweedfs-a32abda1a3fb696687739805faa1f5444d86c5fa.zip | |
adjust compression to optimize for speed
Diffstat (limited to 'weed/operation/compress.go')
| -rw-r--r-- | weed/operation/compress.go | 2 |
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 |
