Descriptionexp/draw: fast paths for drawing a YCbCr or an NRGBA onto an RGBA.
On my laptop, I had an 800x600 jpeg and an 800x600 png (with
transparency). I timed how long it took to draw each image onto an
equivalently sized, zeroed RGBA image.
Previously, the jpeg took 75ms and the png took 70ms, going through
the medium-fast path, i.e. func drawRGBA in draw.go.
After this CL, the jpeg took 14ms, and the png took 21ms with the
Over operator and 12ms with the Src operator.
It's only a rough estimate basd on one image file, but it should
give an idea of the order of magnitude of improvement.
Patch Set 1 #Patch Set 2 : diff -r 502384dd99e8 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 502384dd99e8 https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 4 : diff -r 502384dd99e8 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|