mirror of https://github.com/schollz/croc.git
use best compression
This commit is contained in:
parent
1a22d37c2d
commit
196c9253b8
|
@ -9,7 +9,7 @@ import (
|
|||
// Compress returns a compressed byte slice.
|
||||
func Compress(src []byte) []byte {
|
||||
compressedData := new(bytes.Buffer)
|
||||
compress(src, compressedData, 1)
|
||||
compress(src, compressedData, 9)
|
||||
return compressedData.Bytes()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue