Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimised RGBA image encoding to PNG. Improved test coverage. Reworked benchmark. Performance improvement with both old and new versions of the benchmark: name old speed new speed delta EncodeRGBA_OriginalVersion-10 115MB/s ± 1% 308MB/s ± 1% +166.70% (p=0.000 n=19+17) EncodeRGBA_NewVersion-10 40.3MB/s ± 1% 51.1MB/s ± 2% +26.93% (p=0.000 n=18+20) name old allocs/op new allocs/op delta EncodeRGBA_OriginalVersion-10 614k ± 0% 0k ± 0% -99.99% (p=0.000 n=20+20) EncodeRGBA_NewVersion-10 614k ± 0% 0k ± 0% -99.99% (p=0.000 n=20+20) Change-Id: I450013909c2410b043cd9c1239facd5bd6e3f3f9 GitHub-Last-Rev: 329d6ac011b08efcba5c1d737ba5395b0a66a6ea GitHub-Pull-Request: golang/go#55119 Reviewed-on: https://go-review.googlesource.com/c/go/+/431575 Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Nigel Tao <[email protected]> Reviewed-by: Nigel Tao (INACTIVE; USE @golang.org INSTEAD) <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Nigel Tao <[email protected]>
- Loading branch information