]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: move the huffman bit decoder state higher up in the
authorNigel Tao <nigeltao@golang.org>
Sun, 7 Oct 2012 08:32:28 +0000 (19:32 +1100)
committerNigel Tao <nigeltao@golang.org>
Sun, 7 Oct 2012 08:32:28 +0000 (19:32 +1100)
commitd7b7957db16da1311ce1a8623d7c4c5a154cf815
tree74953ee7682afd1592b454f233e6225551cdf994
parent9224b4c873f09c310787b12830acdb5577a099c9
image/jpeg: move the huffman bit decoder state higher up in the
decoder struct, inside the unmappedzero limit, to eliminate some
TESTB instructions in the inner decoding loop.

benchmark          old ns/op    new ns/op    delta
BenchmarkDecode      2943204      2746360   -6.69%

R=r, dave
CC=golang-dev
https://golang.org/cl/6625058
src/pkg/image/jpeg/reader.go