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

Issue 6625057: code review 6625057: image/jpeg: move the level-shift and clip out of the id... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by nigeltao
Modified:
12 years, 5 months ago
Reviewers:
CC:
r, golang-dev
Visibility:
Public.

Description

image/jpeg: move the level-shift and clip out of the idct function, to be consistent with the fdct function, and to ease any future idct rewrites in assembly. The BenchmarkIDCT delta is obviously just an accounting change and not a real saving, but it does give an indication of what proportion of time was spent in the actual IDCT and what proportion was in shift and clip. The idct time taken is now comparable to fdct. The BenchmarkFDCT delta is an estimate of benchmark noise. benchmark old ns/op new ns/op delta BenchmarkFDCT 3842 3837 -0.13% BenchmarkIDCT 5611 3478 -38.01% BenchmarkDecodeRGBOpaque 2932785 2929751 -0.10%

Patch Set 1 #

Patch Set 2 : diff -r b32301e11025 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b32301e11025 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 0df32a68533e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -39 lines) Patch
M src/pkg/image/jpeg/dct_test.go View 1 3 chunks +8 lines, -14 lines 0 comments Download
M src/pkg/image/jpeg/idct.go View 1 3 chunks +2 lines, -21 lines 0 comments Download
M src/pkg/image/jpeg/reader.go View 1 2 chunks +22 lines, -4 lines 0 comments Download

Messages

Total messages: 4
nigeltao
Hello r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2012-10-07 00:11:20 UTC) #1
r
LGTM
12 years, 5 months ago (2012-10-07 00:22:25 UTC) #2
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=187194a52289 *** image/jpeg: move the level-shift and clip out of the idct ...
12 years, 5 months ago (2012-10-07 00:32:08 UTC) #3
nigeltao
12 years, 5 months ago (2012-10-07 00:54:38 UTC) #4
On 7 October 2012 11:11,  <nigeltao@golang.org> wrote:
> The BenchmarkIDCT delta is obviously just an accounting change

FYI, I profiled decoding half a dozen different JPEG files, and after
this accounting change, idct is around 8-15% of CPU time for photo
images, and 20-30% for graphics like
$GOROOT/doc/gopher/appenginegopher{,color}.jpg
Sign in to reply to this message.

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