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

Issue 5694085: code review 5694085: archive/zip: stop using encoding/binary (Closed)

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

Description

archive/zip: stop using encoding/binary

Patch Set 1 #

Total comments: 3

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -128 lines) Patch
M src/pkg/archive/zip/reader.go View 7 chunks +46 lines, -47 lines 0 comments Download
M src/pkg/archive/zip/struct.go View 1 chunk +0 lines, -10 lines 0 comments Download
M src/pkg/archive/zip/writer.go View 1 7 chunks +85 lines, -71 lines 0 comments Download

Messages

Total messages: 6
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg
13 years ago (2012-02-27 05:23:34 UTC) #1
r
LGTM http://codereview.appspot.com/5694085/diff/1/src/pkg/archive/zip/reader.go File src/pkg/archive/zip/reader.go (right): http://codereview.appspot.com/5694085/diff/1/src/pkg/archive/zip/reader.go#newcode307 src/pkg/archive/zip/reader.go:307: perhaps say why you're not using it (avoids ...
13 years ago (2012-02-27 05:24:54 UTC) #2
bradfitz
Update the CL description to say how fast (in second granularity from your wristwatch) faster ...
13 years ago (2012-02-27 05:28:11 UTC) #3
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=208ac536ffa3 *** archive/zip: stop using encoding/binary R=golang-dev, r, bradfitz CC=golang-dev http://codereview.appspot.com/5694085 http://codereview.appspot.com/5694085/diff/1/src/pkg/archive/zip/reader.go ...
13 years ago (2012-02-27 05:29:27 UTC) #4
bradfitz
http://codereview.appspot.com/5694085/diff/1/src/pkg/archive/zip/writer.go File src/pkg/archive/zip/writer.go (right): http://codereview.appspot.com/5694085/diff/1/src/pkg/archive/zip/writer.go#newcode55 src/pkg/archive/zip/writer.go:55: putUint32(b[:], uint32(directoryHeaderSignature)) this would read nicer if each of ...
13 years ago (2012-02-27 05:33:15 UTC) #5
rsc
13 years ago (2012-02-27 15:49:21 UTC) #6
NOT LGTM

You should definitely avoid binary.Read if you care about
performance, but there is no reason to recreate
binary.LittleEndian.Uint16 etc.
Sign in to reply to this message.

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