1
0
mirror of https://github.com/golang/go synced 2024-10-05 02:21:22 -06:00
go/src/pkg/image/png
Nigel Tao 237ee39269 image/png: optimize encoding image.Gray and image.NRGBA images.
benchmark                    old ns/op    new ns/op    delta
BenchmarkEncodeGray           23616080      5624558  -76.18%
BenchmarkEncodeNRGBOpaque     34181260     17144380  -49.84%
BenchmarkEncodeNRGBA          41235820     20345990  -50.66%
BenchmarkEncodePaletted        5594652      5620362   +0.46%
BenchmarkEncodeRGBOpaque      17242210     17168820   -0.43%
BenchmarkEncodeRGBA           66515720     67243560   +1.09%

R=r
CC=golang-dev
https://golang.org/cl/6490099
2012-09-13 15:47:12 +10:00
..
testdata image/png: speed up PNG decoding for common color models: Gray, NRGBA, 2012-04-27 16:03:58 +10:00
paeth_test.go image/png: optimize paeth some more. 2012-05-30 21:38:46 +10:00
paeth.go image/png: optimize paeth some more. 2012-05-30 21:38:46 +10:00
reader_test.go image/png: tRNS chunk is *non*-alpha-premultiplied. 2012-08-01 09:20:44 +10:00
reader.go image/png: tRNS chunk is *non*-alpha-premultiplied. 2012-08-01 09:20:44 +10:00
writer_test.go image/png: optimize encoding image.Gray and image.NRGBA images. 2012-09-13 15:47:12 +10:00
writer.go image/png: optimize encoding image.Gray and image.NRGBA images. 2012-09-13 15:47:12 +10:00