1
0
mirror of https://github.com/golang/go synced 2024-11-12 10:20:27 -07:00

Change deflate.go's default compression level from 4 to 6.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=35208
CL=35261
This commit is contained in:
Nigel Tao 2009-10-01 17:50:16 -07:00
parent 840333009c
commit 032f2d399f

View File

@ -411,7 +411,7 @@ func (d *deflater) deflater(r io.Reader, w io.Writer, level int, logWindowSize u
case level == NoCompression:
err = d.storedDeflate();
case level == DefaultCompression:
d.level = 4;
d.level = 6;
fallthrough;
case 1 <= level && level <= 9:
err = d.doDeflate();