diff options
| author | Nigel Tao <nigeltao@golang.org> | 2021-09-24 10:43:55 +1000 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2021-09-27 10:10:16 +0000 |
| commit | dac89a9d7fb253d30e5161e9ff6d80fbdfc79d75 (patch) | |
| tree | 17cce06296d80bc4aa0d986c1a8b2002226ab040 /src/bytes/example_test.go | |
| parent | 54079dfd7fff6c61d41c4832c074e8231f235fc3 (diff) | |
| download | go-dac89a9d7fb253d30e5161e9ff6d80fbdfc79d75.tar.xz | |
image/draw: add RGBA64Image fast path for RGBA dst
This should have been part of https://golang.org/cl/340049 but I
overlooked it. That commit added fast path code when the destination
image was *not* an *image.RGBA. This commit edits func drawRGBA.
name old time/op new time/op delta
RGBA1-4 5.11ms ± 1% 1.12ms ± 1% -78.01% (p=0.008 n=5+5)
RGBA2-4 8.69ms ± 1% 2.98ms ± 1% -65.77% (p=0.008 n=5+5)
Updates #44808.
Updates #46395.
Change-Id: I899d46d985634fc81ea47ff4f0d436630e8a961c
Reviewed-on: https://go-review.googlesource.com/c/go/+/351852
Trust: Nigel Tao <nigeltao@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'src/bytes/example_test.go')
0 files changed, 0 insertions, 0 deletions
