diff options
author | Nigel Tao <nigeltao@golang.org> | 2021-08-05 16:11:28 +1000 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2021-09-03 01:38:54 +0000 |
commit | 9f69a44308f4f9cbdae68925202dfef2027a7d20 (patch) | |
tree | cfebbfbaff10356e3152638499faf8784480ff95 /doc | |
parent | 065f3808156c92d957fc1ad2a2a37e147ee628f4 (diff) | |
download | go-9f69a44308f4f9cbdae68925202dfef2027a7d20.tar.gz go-9f69a44308f4f9cbdae68925202dfef2027a7d20.zip |
image/draw: add RGBA64Image fast path
name old time/op new time/op delta
GenericOver-4 15.0ms ± 1% 2.9ms ± 1% -80.56% (p=0.008 n=5+5)
GenericMaskOver-4 7.82ms ± 4% 1.69ms ± 2% -78.38% (p=0.008 n=5+5)
GenericSrc-4 6.13ms ± 3% 1.66ms ± 1% -72.90% (p=0.008 n=5+5)
GenericMaskSrc-4 11.5ms ± 1% 2.0ms ± 0% -82.77% (p=0.008 n=5+5)
Updates #44808.
Change-Id: I131cf6fad01708540390a8012d8f2a21e849fe9d
Reviewed-on: https://go-review.googlesource.com/c/go/+/340049
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Trust: Nigel Tao <nigeltao@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/go1.18.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/go1.18.html b/doc/go1.18.html index df4b56c49f..911bb712f7 100644 --- a/doc/go1.18.html +++ b/doc/go1.18.html @@ -83,6 +83,19 @@ Do not send CLs removing the interior tags from such phrases. TODO: complete this section </p> +<dl id="image/draw"><dt><a href="/pkg/image/draw/">image/draw</a></dt> + <dd> + <p><!-- CL 340049 --> + The <code>Draw</code> and <code>DrawMask</code> fallback implementations + (used when the arguments are not the most common image types) are now + faster when those arguments implement the optional + <a href="/pkg/image/draw/#RGBA64Image"><code>draw.RGBA64Image</code></a> + and <a href="/pkg/image/#RGBA64Image"><code>image.RGBA64Image</code></a> + interfaces that were added in Go 1.17. + </p> + </dd> +</dl><!-- image/draw --> + <dl id="syscall"><dt><a href="/pkg/syscall/">syscall</a></dt> <dd> <p><!-- CL 336550 --> |