0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

do minimal compression

This commit is contained in:
Zack Scholl 2018-09-24 12:41:35 -07:00
parent 2f47dd3178
commit 8bfbe36dd9

View file

@ -9,7 +9,7 @@ import (
// Compress returns a compressed byte slice.
func Compress(src []byte) []byte {
compressedData := new(bytes.Buffer)
compress(src, compressedData, 9)
compress(src, compressedData, 1)
return compressedData.Bytes()
}