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

Issue 7508043: code review 7508043: net/http: remove allocations in HeaderWriteSubset (Closed)

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

Description

net/http: remove allocations in HeaderWriteSubset Before: BenchmarkHeaderWriteSubset 500000 2354 ns/op 197 B/op 2 allocs/op After: BenchmarkHeaderWriteSubset 1000000 2085 ns/op 0 B/op 0 allocs/op Fixes issue 3761

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r 011944857f1f https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -13 lines) Patch
M src/pkg/net/http/header.go View 1 2 3 4 3 chunks +34 lines, -9 lines 0 comments Download
M src/pkg/net/http/header_test.go View 1 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 6
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 1 month ago (2013-03-06 15:52:36 UTC) #1
rsc
LGTM Yay.
12 years, 1 month ago (2013-03-06 20:25:03 UTC) #2
bradfitz
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-06 21:58:12 UTC) #3
bradfitz
I simplified it more, removing the self-referencing sort.Interface. I realized it's unnecessary once I'm using ...
12 years, 1 month ago (2013-03-06 21:59:21 UTC) #4
bradfitz
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-06 22:02:22 UTC) #5
bradfitz
12 years, 1 month ago (2013-03-06 22:10:50 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=622045a2f25a ***

net/http: remove allocations in HeaderWriteSubset

Before:
BenchmarkHeaderWriteSubset  500000  2354 ns/op  197 B/op  2 allocs/op
After:
BenchmarkHeaderWriteSubset 1000000  2085 ns/op    0 B/op  0 allocs/op

Fixes issue 3761

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7508043
Sign in to reply to this message.

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