]> Cypherpunks repositories - gostls13.git/commit
compress/flate: tighten the BestSpeed max match offset bound.
authorNigel Tao <nigeltao@golang.org>
Sat, 29 Oct 2016 02:23:50 +0000 (13:23 +1100)
committerNigel Tao <nigeltao@golang.org>
Sun, 30 Oct 2016 22:52:14 +0000 (22:52 +0000)
commit590fce48849cc7f81b890d6e9b6120fc6681e19a
tree61bd9d4bb44fe7c31e374ab9f1273df93e30ce90
parentf135106ec7cf68b47a5b83a1c2b5dd7eda0d614c
compress/flate: tighten the BestSpeed max match offset bound.

Previously, we were off by one.

Also fix a comment typo.

Change-Id: Ib94d23acc56d5fccd44144f71655481f98803ac8
Reviewed-on: https://go-review.googlesource.com/32149
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/flate/deflate_test.go
src/compress/flate/deflatefast.go