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

Issue 84230043: code review 84230043: net/textproto: simplify common header interning (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by bradfitz
Modified:
10 years, 11 months ago
Reviewers:
gobot, rsc
CC:
rsc, dave_cheney.net, golang-codereviews, iant
Visibility:
Public.

Description

net/textproto: simplify common header interning Takes advantage of CL 83740044, to optimize map[string] lookup from []byte key. Deletes code. No conditional check for gccgo, since Ian plans to add this to gccgo before GCC 4.10 (Go 1.3). benchmark old ns/op new ns/op delta BenchmarkReadMIMEHeader 6066 5086 -16.16% benchmark old allocs new allocs delta BenchmarkReadMIMEHeader 12 12 +0.00% benchmark old bytes new bytes delta BenchmarkReadMIMEHeader 1317 1317 +0.00% Update Issue 3512

Patch Set 1 #

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

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

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

Total comments: 2

Patch Set 5 : diff -r 9d192c696b6b https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -75 lines) Patch
M src/pkg/net/textproto/reader.go View 1 2 chunks +53 lines, -59 lines 0 comments Download
M src/pkg/net/textproto/reader_test.go View 1 2 3 4 1 chunk +12 lines, -16 lines 0 comments Download

Messages

Total messages: 7
bradfitz
Hello rsc@golang.org (cc: golang-codereviews@googlegroups.com, iant@golang.org), I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 12 months ago (2014-04-03 21:36:16 UTC) #1
dave_cheney.net
https://codereview.appspot.com/84230043/diff/60001/src/pkg/net/textproto/reader.go File src/pkg/net/textproto/reader.go (right): https://codereview.appspot.com/84230043/diff/60001/src/pkg/net/textproto/reader.go#newcode594 src/pkg/net/textproto/reader.go:594: for _, v := range []string{ Is there any ...
10 years, 12 months ago (2014-04-03 23:42:16 UTC) #2
bradfitz
They're equivalent but my way looks lighter with less visual stutter. On Apr 3, 2014 ...
10 years, 12 months ago (2014-04-03 23:46:03 UTC) #3
rsc
LGTM https://codereview.appspot.com/84230043/diff/60001/src/pkg/net/textproto/reader.go File src/pkg/net/textproto/reader.go (right): https://codereview.appspot.com/84230043/diff/60001/src/pkg/net/textproto/reader.go#newcode594 src/pkg/net/textproto/reader.go:594: for _, v := range []string{ On 2014/04/03 ...
10 years, 11 months ago (2014-04-07 13:54:43 UTC) #4
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=074e5c79d48a *** net/textproto: simplify common header interning Takes advantage of CL 83740044, ...
10 years, 11 months ago (2014-04-07 17:39:01 UTC) #5
gobot
This CL appears to have broken the linux-386 builder. See http://build.golang.org/log/eca3d6937d0772be43f854ad816837cb6571d30a
10 years, 11 months ago (2014-04-07 17:51:39 UTC) #6
bradfitz
10 years, 11 months ago (2014-04-07 17:53:31 UTC) #7
Looks unrelated but real.
 On Apr 7, 2014 10:51 AM, <gobot@golang.org> wrote:

> This CL appears to have broken the linux-386 builder.
> See http://build.golang.org/log/eca3d6937d0772be43f854ad816837cb6571d30a
>
> https://codereview.appspot.com/84230043/
>
Sign in to reply to this message.

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