1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:21:22 -06:00
go/src/pkg/image
Nigel Tao dbcdce5866 image/png: optimize paeth some more.
filterPaeth takes []byte arguments instead of byte arguments,
which avoids some redudant computation of the previous pixel
in the inner loop.

Also eliminate a bounds check in decoding the up filter.

benchmark                       old ns/op    new ns/op    delta
BenchmarkDecodeGray               3139636      2812531  -10.42%
BenchmarkDecodeNRGBAGradient     12341520     10971680  -11.10%
BenchmarkDecodeNRGBAOpaque       10740780      9612455  -10.51%
BenchmarkDecodePaletted           1819535      1818913   -0.03%
BenchmarkDecodeRGB                8974695      8178070   -8.88%

R=rsc
CC=golang-dev
https://golang.org/cl/6243061
2012-05-30 21:38:46 +10:00
..
color build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
draw doc: add Go image/draw package article and convert code snippets to Go1. 2012-03-14 11:27:41 +11:00
gif std: add struct field tags to untagged literals. 2012-02-03 10:12:25 +11:00
jpeg all: avoid bytes.NewBuffer(nil) 2012-02-06 14:09:00 +11:00
png image/png: optimize paeth some more. 2012-05-30 21:38:46 +10:00
testdata image: remove image/bmp and image/tiff from std. 2012-01-31 14:01:53 +11:00
decode_example_test.go image: add Decode example. 2012-02-18 15:09:01 +11:00
decode_test.go image: remove image/bmp and image/tiff from std. 2012-01-31 14:01:53 +11:00
format.go image: add package docs, rename s/UnknownFormatError/ErrFormat/ and 2012-02-06 11:04:12 +11:00
geom.go image: fix typo in Rectangle.Sub comment. 2012-01-18 10:55:03 +11:00
image_test.go image: spin off a new color package out of the image package. 2011-10-04 11:09:03 +11:00
image.go doc: added The Go image package article 2012-03-28 14:20:51 +11:00
names.go image: delete the image.Repeated type. 2012-02-08 11:41:47 +11:00
ycbcr_test.go all: shorten some of the longer tests 2012-02-18 16:24:23 -05:00
ycbcr.go image: change the YCbCr image's pixel buffers to start at Rect.Min 2012-01-20 10:44:22 +11:00