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

Issue 8114043: code review 8114043: net/http: inline chunkWriter in response (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by bradfitz
Modified:
11 years, 11 months ago
Reviewers:
CC:
golang-dev, gri
Visibility:
Public.

Description

net/http: inline chunkWriter in response A chunkWriter and a response are 1:1. Make them contiguous in memory and save an allocation. benchmark old ns/op new ns/op delta BenchmarkServerFakeConnWithKeepAliveLite 10715 10539 -1.64% benchmark old allocs new allocs delta BenchmarkServerFakeConnWithKeepAliveLite 21 20 -4.76% benchmark old bytes new bytes delta BenchmarkServerFakeConnWithKeepAliveLite 1626 1609 -1.05%

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M src/pkg/net/http/server.go View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 3
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 11 months ago (2013-03-28 20:12:12 UTC) #1
gri
LGTM
11 years, 11 months ago (2013-03-28 20:13:12 UTC) #2
bradfitz
11 years, 11 months ago (2013-03-28 20:13:35 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=3587a167774e ***

net/http: inline chunkWriter in response

A chunkWriter and a response are 1:1. Make them contiguous in
memory and save an allocation.

benchmark                                   old ns/op    new ns/op    delta
BenchmarkServerFakeConnWithKeepAliveLite        10715        10539   -1.64%

benchmark                                  old allocs   new allocs    delta
BenchmarkServerFakeConnWithKeepAliveLite           21           20   -4.76%

benchmark                                   old bytes    new bytes    delta
BenchmarkServerFakeConnWithKeepAliveLite         1626         1609   -1.05%

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

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