Descriptionimage/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%
Patch Set 1 #Patch Set 2 : diff -r 9e5a84e0fa57 https://code.google.com/p/go #Patch Set 3 : diff -r 9e5a84e0fa57 https://code.google.com/p/go #
Total comments: 1
Patch Set 4 : diff -r b3c1f7e35083 https://code.google.com/p/go #
MessagesTotal messages: 3
|