]> Cypherpunks repositories - gostls13.git/commit
image/gif: speed up initializing test image
authorNigel Tao <nigeltao@golang.org>
Sat, 13 Jun 2020 02:28:08 +0000 (12:28 +1000)
committerNigel Tao <nigeltao@golang.org>
Sun, 14 Jun 2020 12:41:37 +0000 (12:41 +0000)
commit97019105884ced2c4658f9763528e7f6983f8773
tree1c808cd86d2de0b95a52d3461698b493ff6270db
parentbd486c39bad4c9f90190ae58de8a592bb9a2aae9
image/gif: speed up initializing test image

The benchmark throughput numbers don't change, but the set-up time (the
time taken before the b.ResetTimer() call) drops from 460ms to 4ms.

Change-Id: I5a6756643dff6127f6d902455d83459c084834fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/237757
Reviewed-by: Rob Pike <r@golang.org>
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/image/gif/writer_test.go