• Nigel Tao's avatar
    draw.Draw fast paths for the Over operator. · 20066679
    Nigel Tao authored
    Time (us) to draw a 200x200 src onto an image.RGBA dst with the Over
    operator. Each case was measured three separate times, and the sorted
    times are reported.
    
    Fill case (where src is an image.ColorImage):
    Before:
    7438, 7511, 7526
    After:
    3073, 3087, 3102
    
    Copy case (where src is an image.RGBA):
    Before:
    9506, 9510, 9563
    After:
    5262, 5300, 5344
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/1532041
    20066679
draw.go 10.4 KB