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

Issue 4538077: code review 4538077: image/jpeg: small memory layout optimization for encoding. (Closed)

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

Description

image/jpeg: small memory layout optimization for encoding. Before: jpeg.BenchmarkEncodeRGBOpaque ... 23.29 MB/s jpeg.BenchmarkEncodeRGBOpaque ... 23.27 MB/s jpeg.BenchmarkEncodeRGBOpaque ... 23.17 MB/s After: jpeg.BenchmarkEncodeRGBOpaque ... 23.42 MB/s jpeg.BenchmarkEncodeRGBOpaque ... 23.34 MB/s jpeg.BenchmarkEncodeRGBOpaque ... 23.33 MB/s

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -7 lines) Patch
M src/pkg/image/jpeg/writer.go View 1 4 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 3
nigeltao
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-05-18 21:20:20 UTC) #1
rsc
LGTM I found this because of the unaligned access. It wasn't (and still isn't) being ...
14 years ago (2011-05-18 21:24:26 UTC) #2
nigeltao
14 years ago (2011-05-18 21:39:41 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=31f1d1d54f4c ***

image/jpeg: small memory layout optimization for encoding.

Before:
jpeg.BenchmarkEncodeRGBOpaque ... 23.29 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.27 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.17 MB/s

After:
jpeg.BenchmarkEncodeRGBOpaque ... 23.42 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.34 MB/s
jpeg.BenchmarkEncodeRGBOpaque ... 23.33 MB/s

R=rsc
CC=golang-dev
http://codereview.appspot.com/4538077
Sign in to reply to this message.

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