1
0
mirror of https://github.com/golang/go synced 2024-10-07 11:31:22 -06:00
go/src/pkg/image
Nigel Tao 1423ecb126 image/png: optimize the paeth filter implementation.
image/png benchmarks:
benchmark                       old ns/op    new ns/op    delta
BenchmarkPaeth                         10            7  -29.21%
BenchmarkDecodeGray               2381745      2241620   -5.88%
BenchmarkDecodeNRGBAGradient      9535555      8835100   -7.35%
BenchmarkDecodeNRGBAOpaque        8189590      7611865   -7.05%
BenchmarkDecodePaletted           1300688      1301940   +0.10%
BenchmarkDecodeRGB                6760146      6317082   -6.55%
BenchmarkEncodePaletted           6048596      6122666   +1.22%
BenchmarkEncodeRGBOpaque         18891140     19474230   +3.09%
BenchmarkEncodeRGBA              78945350     78552600   -0.50%

Wall time for Denis Cheremisov's PNG-decoding program given in
https://groups.google.com/group/golang-nuts/browse_thread/thread/22aa8a05040fdd49
Before: 2.25s
After:  2.27s
Delta:  +1%

The same program, but with a different PNG input file
(http://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png)
and only 100 iterations instead of 1000
Before: 4.78s
After:  4.42s
Delta:  -8%

R=rsc
CC=golang-dev
https://golang.org/cl/6242056
2012-05-25 14:08:51 +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 the paeth filter implementation. 2012-05-25 14:08:51 +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