]> Cypherpunks repositories - gostls13.git/commit
draw.Draw fast paths for the Over operator.
authorNigel Tao <nigeltao@golang.org>
Fri, 4 Jun 2010 00:19:00 +0000 (17:19 -0700)
committerNigel Tao <nigeltao@golang.org>
Fri, 4 Jun 2010 00:19:00 +0000 (17:19 -0700)
commit2006667931befe0dfc2b77fc32fef83c04252c80
treed4875c2d37440260a94d43d7a06a3a43f188d364
parentc2e9f0c5625d3f365620aa420771f1dcd56b6666
draw.Draw fast paths for the Over operator.

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
src/pkg/exp/draw/draw.go