FS: reduced miminum compression ratio for triggering response compression. This should reduce CPU usage for files with low compression ratio

This commit is contained in:
Aliaksandr Valialkin
2016-01-08 12:52:35 +02:00
parent 8a8dfcb157
commit bbb68f32d1
+1 -1
View File
@@ -822,7 +822,7 @@ func (h *fsHandler) createDirIndex(base *URI, dirPath string, mustCompress bool)
return ff, nil
}
const fsMinCompressRatio = 0.9
const fsMinCompressRatio = 0.8
func (h *fsHandler) compressAndOpenFSFile(filePath string) (*fsFile, error) {
f, err := os.Open(filePath)