Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1460)

Issue 107340047: code review 107340047: go.image/vp8: use branch-free abs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by ruiu
Modified:
9 years, 10 months ago
Reviewers:
r, nigeltao
CC:
nigeltao, r, golang-codereviews
Visibility:
Public.

Description

go.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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -4 lines) Patch
M vp8/filter.go View 1 2 3 4 5 1 chunk +12 lines, -4 lines 0 comments Download

Messages

Total messages: 8
ruiu
Hello nigeltao@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://ruiu%40google.com@code.google.com/p/go.image/
9 years, 10 months ago (2014-06-27 00:14:20 UTC) #1
nigeltao
LGTM if r is OK with this size-of-int bit-shiftery.
9 years, 10 months ago (2014-06-27 00:46:45 UTC) #2
nigeltao
BTW another idea is to change all the "int"s in filter.go to "int32"s. It might ...
9 years, 10 months ago (2014-06-27 00:48:29 UTC) #3
r
LGTM with tweaks leaving for nigeltao https://codereview.appspot.com/107340047/diff/80001/vp8/filter.go File vp8/filter.go (right): https://codereview.appspot.com/107340047/diff/80001/vp8/filter.go#newcode230 vp8/filter.go:230: const intSize = ...
9 years, 10 months ago (2014-06-27 04:46:11 UTC) #4
ruiu
I tried to change int to int32 as Nigel suggested. The benchmark results were the ...
9 years, 10 months ago (2014-06-27 23:40:51 UTC) #5
r
LGTM
9 years, 10 months ago (2014-06-28 00:52:26 UTC) #6
r
(still leaving for nige)
9 years, 10 months ago (2014-06-28 00:53:17 UTC) #7
nigeltao
9 years, 10 months ago (2014-06-30 00:33:49 UTC) #8
*** Submitted as
https://code.google.com/p/go/source/detail?r=f6e41288d919&repo=image ***

go.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%

LGTM=nigeltao, r
R=nigeltao, r
CC=golang-codereviews
https://codereview.appspot.com/107340047

Committer: Nigel Tao <nigeltao@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b