1
0
mirror of https://github.com/golang/go synced 2024-11-16 22:34:45 -07:00
go/src/image
Nigel Tao dac89a9d7f 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>
2021-09-27 10:10:16 +00:00
..
color
draw image/draw: add RGBA64Image fast path for RGBA dst 2021-09-27 10:10:16 +00:00
gif image/gif: fix typo in the comment (io.ReadByte -> io.ByteReader) 2021-06-30 17:58:50 +00:00
internal/imageutil
jpeg
png
testdata
decode_example_test.go
decode_test.go
format.go
geom_test.go
geom.go image: add Uniform.RGBA64At and Rectangle.RGBA64At 2021-06-30 02:00:49 +00:00
image_test.go image: add Uniform.RGBA64At and Rectangle.RGBA64At 2021-06-30 02:00:49 +00:00
image.go
names.go image: add Uniform.RGBA64At and Rectangle.RGBA64At 2021-06-30 02:00:49 +00:00
ycbcr_test.go
ycbcr.go