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

Issue 108140045: code review 108140045: go.image/vp8: remove the filter look-up tables. (Closed)

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

Description

go.image/vp8: remove the filter look-up tables. The benchmarks are a little slower, but the code is shorter. benchmark old ns/op new ns/op delta BenchmarkDecodeVP8SimpleFilter 621950 644184 +3.57% BenchmarkDecodeVP8NormalFilter 4045745 4269431 +5.53%

Patch Set 1 #

Patch Set 2 : diff -r f5be9965bb52 https://code.google.com/p/go.image #

Patch Set 3 : diff -r f5be9965bb52 https://code.google.com/p/go.image #

Patch Set 4 : diff -r f5be9965bb52 https://code.google.com/p/go.image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -454 lines) Patch
M vp8/filter.go View 1 3 chunks +61 lines, -454 lines 0 comments Download

Messages

Total messages: 8
nigeltao
Hello r@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.image
9 years, 10 months ago (2014-06-26 03:43:05 UTC) #1
nigeltao
The code is shorter, but the benchmarks are 4% slower. Personally, I'm not in favor ...
9 years, 10 months ago (2014-06-26 03:43:59 UTC) #2
r
Is the function in-lined? On Wed, Jun 25, 2014 at 8:43 PM, <nigeltao@golang.org> wrote: > ...
9 years, 10 months ago (2014-06-26 04:25:56 UTC) #3
nigeltao
On Thu, Jun 26, 2014 at 2:25 PM, Rob Pike <r@golang.org> wrote: > Is the ...
9 years, 10 months ago (2014-06-26 04:41:46 UTC) #4
minux
I'm in favor this CL. There really is no need to use lut for functions ...
9 years, 10 months ago (2014-06-26 05:02:11 UTC) #5
ruiu
How about bit manipulation hacks? I don't know a good way to clamp a number, ...
9 years, 10 months ago (2014-06-26 06:24:55 UTC) #6
r
LGTM I like the cleanup. It's crazy to have such a big table just to ...
9 years, 10 months ago (2014-06-26 18:18:53 UTC) #7
nigeltao
9 years, 10 months ago (2014-06-26 23:15:43 UTC) #8
*** Submitted as
https://code.google.com/p/go/source/detail?r=9e772e41e630&repo=image ***

go.image/vp8: remove the filter look-up tables.

The benchmarks are a little slower, but the code is shorter.

benchmark                          old ns/op     new ns/op     delta
BenchmarkDecodeVP8SimpleFilter     621950        644184        +3.57%
BenchmarkDecodeVP8NormalFilter     4045745       4269431       +5.53%

LGTM=r
R=r, minux, ruiu
CC=golang-codereviews
https://codereview.appspot.com/108140045
Sign in to reply to this message.

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