golang-image/draw
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
..
draw.go draw: new package, a superset of the standard library's image/draw 2015-02-17 23:20:02 +00:00
example_test.go draw: implement NearestNeighbor and ApproxBiLinear Transform. 2015-03-16 23:32:22 +00:00
gen.go draw: inline the generated PixOffset calls. 2015-03-21 04:17:09 +00:00
impl.go draw: inline the generated PixOffset calls. 2015-03-21 04:17:09 +00:00
scale_test.go draw: have TestSrcTranslationInvariance work on smaller images. 2015-03-18 06:02:26 +00:00
scale.go draw: implement Kernel.Transform. 2015-03-17 23:09:51 +00:00