Go to file
Nigel Tao 4180bcbc4a draw: inline the generated PixOffset calls.
Only the YCbCr benchmarks show significant changes. The other benchmark
changes look noisy. The PixOffset and YOffset calls were previously
already inlined by the gc compiler. COffset was different because it's
more complicated than YOffset, and the switch inside the COffset body is
redundant when you already know the src image sratio.
http://golang.org/src/image/ycbcr.go?s=2377:2414#L77

benchmark                      old ns/op     new ns/op     delta
BenchmarkScaleLargeDownNN      1037504       908236        -12.46%
BenchmarkScaleLargeDownAB      3196568       2735776       -14.42%
BenchmarkScaleLargeDownBL      357165552     311463393     -12.80%
BenchmarkScaleLargeDownCR      649403305     544985134     -16.08%
BenchmarkScaleSrcYCbCr         3204063       2699147       -15.76%
BenchmarkTformABSrcYCbCr       2155142       1968540       -8.66%
BenchmarkTformCRSrcYCbCr       11672625      9865358       -15.48%

Change-Id: Ifa109363a1282ab114b2fdb0b577dcafef927333
Reviewed-on: https://go-review.googlesource.com/7880
Reviewed-by: Rob Pike <r@golang.org>
2015-03-21 04:17:09 +00:00
bmp image: add import comments. 2014-12-09 22:43:18 +00:00
cmd/webp-manual-test image: add import comments. 2014-12-09 22:43:18 +00:00
draw draw: inline the generated PixOffset calls. 2015-03-21 04:17:09 +00:00
math math/f32, math/f64: add a comment that "Aff" stands for affine 2015-03-06 02:15:01 +00:00
riff image: add import comments. 2014-12-09 22:43:18 +00:00
testdata draw: implement Kernel.Transform. 2015-03-17 23:09:51 +00:00
tiff image: add import comments. 2014-12-09 22:43:18 +00:00
vp8 image: add import comments. 2014-12-09 22:43:18 +00:00
vp8l image: add import comments. 2014-12-09 22:43:18 +00:00
webp image: add import comments. 2014-12-09 22:43:18 +00:00
.gitattributes image: copying .gitattributes to all subrepositories 2014-12-23 11:05:35 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 10:42:30 +11:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
codereview.cfg image: add codereview.cfg 2015-03-18 17:04:05 +00:00
CONTRIBUTING.md doc: add CONTRIBUTING.md 2015-02-20 05:00:47 +00:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:31 +11:00
PATENTS go.image: add PATENTS file to the subrepo. 2012-04-16 11:25:02 +10:00
README go.image: initial code. 2012-01-31 11:32:50 +11:00

This repository holds supplementary Go image libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.