• Nigel Tao's avatar
    Fast-ish path for drawing onto an image.RGBA destination. · efda3aba
    Nigel Tao authored
    Time to draw.Draw a 200x200 image fell from 18.4ms (and 1 malloc) to
    5.6ms (and 0 mallocs). It's still relatively slow since it assumes
    nothing about the src or mask images, but it does remove the malloc.
    There are existing faster, more specialized paths for copies, fills
    and image glyph masks.
    
    Also added a "compare to a slow but obviously correct implementation"
    check to draw_test.go.
    
    R=rsc, r
    CC=golang-dev
    https://golang.org/cl/1223044
    efda3aba
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
pkg Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...