diff options
author | Nigel Tao <nigeltao@golang.org> | 2010-05-10 10:32:08 +1000 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2010-05-10 10:32:08 +1000 |
commit | 03339a24bc08840777d0c72888c9779661fa83bb (patch) | |
tree | 867807836b77420de13380fba9ce16870d44d4f4 /src/pkg/json/decode.go | |
parent | 8675f36b64fd8dc030b7397b0fb6f80196fbe7d9 (diff) | |
download | golang-03339a24bc08840777d0c72888c9779661fa83bb.tar.gz |
exp/draw fast path for glyph images.
To draw.Draw a 32x32 image.Alpha 10000 times,
Before: 633ms with 10000 mallocs
After: 49ms with 0 mallocs
These times are just blitting an image.Alpha, and do not include
rasterizing a glyph's vector contours to an image.Alpha.
The "generic" test case in draw_test.go tests this fast path.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1122043
Diffstat (limited to 'src/pkg/json/decode.go')
0 files changed, 0 insertions, 0 deletions