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

use best compression

This commit is contained in:
Zack Scholl 2018-09-25 09:27:32 -07:00
parent 02e63b6473
commit ee7518c7bd

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, 1)
compress(src, compressedData, 9)
return compressedData.Bytes()
}