Descriptiongo.image/vp8: use branch-free abs
This change seems to restore performance to
the level before CL 108140045.
benchmark old ns/op new ns/op delta
BenchmarkDecodeVP8SimpleFilter 796416 784394 -1.51%
BenchmarkDecodeVP8NormalFilter 4931138 4693078 -4.83%
BenchmarkDecodeVP8L 7820030 7821796 +0.02%
Patch Set 1 #Patch Set 2 : diff -r 9e772e41e630 https://ruiu%40google.com@code.google.com/p/go.image/ #Patch Set 3 : diff -r 9e772e41e630 https://ruiu%40google.com@code.google.com/p/go.image/ #Patch Set 4 : diff -r 9e772e41e630 https://ruiu%40google.com@code.google.com/p/go.image/ #Patch Set 5 : diff -r 9e772e41e630 https://ruiu%40google.com@code.google.com/p/go.image/ #
Total comments: 4
Patch Set 6 : diff -r 9e772e41e630 https://ruiu%40google.com@code.google.com/p/go.image/ #MessagesTotal messages: 8
|