1
0
mirror of https://github.com/golang/go synced 2024-11-07 01:46:15 -07:00
go/src/compress
Nigel Tao 4e215554aa compress/lzw: clarify code invariants
This follows on from https://go-review.googlesource.com/c/go/+/191358
which was submitted as a comment-only change.

Benchmarks don't show any significant change:

compress/lzw
name            old speed      new speed      delta
Decoder/1e4-56  92.8MB/s ± 1%  92.7MB/s ± 1%   ~     (p=1.000 n=5+5)
Decoder/1e5-56   100MB/s ± 1%   100MB/s ± 1%   ~     (p=0.746 n=5+5)
Decoder/1e6-56   101MB/s ± 1%   101MB/s ± 1%   ~     (p=0.381 n=5+5)

image/gif
name                old speed      new speed      delta
Decode-56           63.2MB/s ± 1%  63.2MB/s ± 1%   ~     (p=0.690 n=5+5)

Change-Id: Ic36b5410cb06ca258da32e40da1f1ff6c44cff86
Reviewed-on: https://go-review.googlesource.com/c/go/+/194938
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-09-14 02:23:31 +00:00
..
bzip2
flate compress/flate: improve deflate performance by register allocating the index 2019-08-28 12:48:37 +00:00
gzip compress/gzip: add missing error check in test 2019-05-24 14:55:39 +00:00
lzw compress/lzw: clarify code invariants 2019-09-14 02:23:31 +00:00
testdata
zlib all: fix a bunch of misspellings 2018-10-06 15:40:03 +00:00