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

Issue 5683050: code review 5683050: go.image/tiff: optimize reading uncompressed files from... (Closed)

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

Description

go.image/tiff: optimize reading uncompressed files from a tiff.buffer. In case the image is read via a tiff.buffer, avoid copying the data strip before decoding it. Remove corresponding TODO. Speeds up reading uncompressed images (which is the common case) and uses much less memory. benchmark old ns/op new ns/op delta BenchmarkDecodeCompressed 4619438 4630774 +0.25% BenchmarkDecodeUncompressed 260809 219875 -15.70%

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M tiff/buffer.go View 1 2 chunks +24 lines, -9 lines 0 comments Download
M tiff/reader.go View 1 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 3
bsiegert
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.image
13 years, 1 month ago (2012-02-20 19:02:15 UTC) #1
nigeltao
LGTM.
13 years, 1 month ago (2012-02-21 00:24:11 UTC) #2
nigeltao
13 years, 1 month ago (2012-02-21 00:25:33 UTC) #3
*** Submitted as a06dc69107c7 ***

go.image/tiff: optimize reading uncompressed files from a tiff.buffer.

In case the image is read via a tiff.buffer, avoid copying the
data strip before decoding it. Remove corresponding TODO.
Speeds up reading uncompressed images (which is the common case)
and uses much less memory.

benchmark                      old ns/op    new ns/op    delta
BenchmarkDecodeCompressed        4619438      4630774   +0.25%
BenchmarkDecodeUncompressed       260809       219875  -15.70%

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/5683050

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