{"shas":[["7e32fadf68eca8b2b2ff0da2439e4bcfb6099753","58ae08b3356928ff9c67562b4719487d54fe8348@golang.org","image: change Pix from []FooColor to []uint8.\n\nSome benchmark numbers below. The image/draw fast-paths show dramatic\nimprovement, the generic slow-paths show a smaller slow-down.\n\nBEFORE\npng.BenchmarkEncodePaletted      200       8203800 ns/op      37.45 MB/s\npng.BenchmarkEncodeRGBOpaque         100      26940440 ns/op      45.61 MB/s\npng.BenchmarkEncodeRGBA       20      73821000 ns/op      16.65 MB/s\njpeg.BenchmarkEncodeRGBOpaque         50      35598640 ns/op      34.52 MB/s\ndraw.BenchmarkFillOver\t     500\t   4024226 ns/op\ndraw.BenchmarkFillSrc\t   10000\t    152736 ns/op\ndraw.BenchmarkCopyOver\t     500\t   3452824 ns/op\ndraw.BenchmarkCopySrc\t   50000\t     73218 ns/op\ndraw.BenchmarkNRGBAOver\t     500\t   3941234 ns/op\ndraw.BenchmarkNRGBASrc\t    1000\t   2484400 ns/op\ndraw.BenchmarkYCbCr\t    1000\t   2609005 ns/op\ndraw.BenchmarkGlyphOver\t    2000\t   1169575 ns/op\ndraw.BenchmarkRGBA\t     200\t   9031390 ns/op\ndraw.BenchmarkGenericOver\t      50\t  34636620 ns/op\ndraw.BenchmarkGenericMaskOver\t     100\t  16561150 ns/op\ndraw.BenchmarkGenericSrc\t     100\t  13873760 ns/op\ndraw.BenchmarkGenericMaskSrc\t     100\t  25198860 ns/op\n\nAFTER\npng.BenchmarkEncodePaletted      200       8206600 ns/op      37.43 MB/s\npng.BenchmarkEncodeRGBOpaque         100      26129530 ns/op      47.03 MB/s\npng.BenchmarkEncodeRGBA       20      75776750 ns/op      16.22 MB/s\njpeg.BenchmarkEncodeRGBOpaque         50      37192940 ns/op      33.04 MB/s\ndraw.BenchmarkFillOver\t     500\t   3008134 ns/op\ndraw.BenchmarkFillSrc\t   10000\t    154214 ns/op\ndraw.BenchmarkCopyOver\t    1000\t   2169988 ns/op\ndraw.BenchmarkCopySrc\t   50000\t     73095 ns/op\ndraw.BenchmarkNRGBAOver\t    1000\t   2491079 ns/op\ndraw.BenchmarkNRGBASrc\t    2000\t   1361244 ns/op\ndraw.BenchmarkYCbCr\t    1000\t   2554269 ns/op\ndraw.BenchmarkGlyphOver\t    2000\t   1042225 ns/op\ndraw.BenchmarkRGBA\t     100\t  10233340 ns/op\ndraw.BenchmarkGenericOver\t      50\t  38421560 ns/op\ndraw.BenchmarkGenericMaskOver\t     100\t  17521190 ns/op\ndraw.BenchmarkGenericSrc\t     100\t  16351200 ns/op\ndraw.BenchmarkGenericMaskSrc\t     100\t  26538190 ns/op\n\nR=r\nCC=golang-dev\nhttp://codereview.appspot.com/4675076","Nigel Tao"]],"ref":"refs/heads/master","size":1,"head":"7e32fadf68eca8b2b2ff0da2439e4bcfb6099753","push_id":36332911}