]> Cypherpunks repositories - gostls13.git/commit
image/jpeg: don't call ensureNBits unless we have to.
authorNigel Tao <nigeltao@golang.org>
Tue, 30 Oct 2012 23:02:11 +0000 (10:02 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 30 Oct 2012 23:02:11 +0000 (10:02 +1100)
commitad487dad75faca0c5cd6a152d9f04d9ff93aaff5
treec575f6da946d740401aa5f9deba4edfe10caa01c
parentd12a7d39d1cfa7a0cd824673d7aacc4615b461cb
image/jpeg: don't call ensureNBits unless we have to.

benchmark                     old ns/op    new ns/op    delta
BenchmarkDecodeBaseline         3155638      2783998  -11.78%
BenchmarkDecodeProgressive      4008088      3660310   -8.68%

R=r, bradfitz
CC=golang-dev
https://golang.org/cl/6775072
src/pkg/image/jpeg/huffman.go