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

Issue 6405072: code review 6405072: textproto: new field serialization routine

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

Description

textproto: new field serialization routine

Patch Set 1 #

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

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -36 lines) Patch
M src/pkg/net/http/header.go View 1 2 chunks +2 lines, -21 lines 1 comment Download
M src/pkg/net/http/transfer.go View 1 1 chunk +10 lines, -15 lines 0 comments Download
M src/pkg/net/textproto/writer.go View 1 2 chunks +53 lines, -0 lines 2 comments Download
M src/pkg/net/textproto/writer_test.go View 1 2 chunks +33 lines, -0 lines 0 comments Download

Messages

Total messages: 8
pascal
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
13 years, 5 months ago (2012-07-21 12:55:06 UTC) #1
adg
Does this fix any issues? What's the purpose of this change? http://codereview.appspot.com/6405072/diff/2001/src/pkg/net/textproto/writer.go File src/pkg/net/textproto/writer.go (right): ...
13 years, 5 months ago (2012-07-22 22:31:41 UTC) #2
pascal
Hi Andrew, > Does this fix any issues? What's the purpose of this change? WriteMIMEField ...
13 years, 5 months ago (2012-07-23 17:21:32 UTC) #3
bradfitz
http://codereview.appspot.com/6405072/diff/2001/src/pkg/net/textproto/writer.go File src/pkg/net/textproto/writer.go (right): http://codereview.appspot.com/6405072/diff/2001/src/pkg/net/textproto/writer.go#newcode131 src/pkg/net/textproto/writer.go:131: field := make([]byte, len(name)+len(body)+2) in the common case, this ...
13 years, 5 months ago (2012-07-30 01:11:46 UTC) #4
rsc
I'm a little skeptical that this is necessary, but it's definitely quite a bit more ...
13 years, 5 months ago (2012-07-30 01:15:16 UTC) #5
pascal
Your concerns are well understood. After a forced Google account merge I can't submit changes ...
13 years, 5 months ago (2012-08-03 13:49:21 UTC) #6
rsc
Please open a new CL if you want to continue working on this patch. You ...
13 years, 5 months ago (2012-08-03 19:21:47 UTC) #7
bradfitz
13 years, 5 months ago (2012-08-07 04:08:17 UTC) #8
http://codereview.appspot.com/6405072/diff/2001/src/pkg/net/http/header.go
File src/pkg/net/http/header.go (left):

http://codereview.appspot.com/6405072/diff/2001/src/pkg/net/http/header.go#ol...
src/pkg/net/http/header.go:96: ws, ok := w.(writeStringer)
all this writeStringer stuff was done for performance reasons.  I'd hate to
throw that away for a corner case.  If anything, only call
textproto.WriteMIMEField if len(v) > textproto.MaxFieldValueLength (const) or
something.
Sign in to reply to this message.

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