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

Issue 52840043: code review 52840043: net/http: cache transport environment lookup (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by bradfitz
Modified:
10 years, 3 months ago
Reviewers:
mattn, brainman, dvyukov
CC:
golang-codereviews, brainman, mattn
Visibility:
Public.

Description

net/http: cache transport environment lookup Apparently this is expensive on Windows. Fixes Issue 7020

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -6 lines) Patch
M src/pkg/net/http/export_test.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/net/http/transport.go View 1 2 3 3 chunks +37 lines, -6 lines 0 comments Download
M src/pkg/net/http/transport_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12
bradfitz
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 4 months ago (2014-01-15 21:27:22 UTC) #1
brainman
LGTM. Alex
10 years, 4 months ago (2014-01-15 23:23:00 UTC) #2
bradfitz
Do you want to measure this on Windows before I submit it? On Wed, Jan ...
10 years, 4 months ago (2014-01-15 23:24:03 UTC) #3
brainman
On 2014/01/15 23:24:03, bradfitz wrote: > Do you want to measure this on Windows before ...
10 years, 4 months ago (2014-01-15 23:29:23 UTC) #4
bradfitz
On Wed, Jan 15, 2014 at 3:29 PM, <alex.brainman@gmail.com> wrote: > On 2014/01/15 23:24:03, bradfitz ...
10 years, 4 months ago (2014-01-15 23:54:34 UTC) #5
mattn
LGTM
10 years, 4 months ago (2014-01-15 23:57:44 UTC) #6
mattn
Don't you add new function to reset them?
10 years, 4 months ago (2014-01-15 23:59:49 UTC) #7
bradfitz
ResetCachedEnvironment is in export_test.go, because it's only needed by tests. We're not modifying the public ...
10 years, 4 months ago (2014-01-16 00:03:10 UTC) #8
brainman
On 2014/01/15 23:54:34, bradfitz wrote: > > I thought Dmitry said it affected the benchmarks ...
10 years, 4 months ago (2014-01-16 00:26:02 UTC) #9
dvyukov
On Thu, Jan 16, 2014 at 4:26 AM, <alex.brainman@gmail.com> wrote: > BenchmarkClientServer 5798 5143 > ...
10 years, 4 months ago (2014-01-16 06:19:27 UTC) #10
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=f16865e8a2c8 *** net/http: cache transport environment lookup Apparently this is expensive on ...
10 years, 4 months ago (2014-01-16 18:25:48 UTC) #11
dvyukov
10 years, 3 months ago (2014-01-17 09:01:39 UTC) #12
Message was sent while issue was closed.
FYI

---------- Forwarded message ----------
Subject: Perf changes on windows-amd64 by net/http: cache transport environment
lookup


Change f16865e8a2c8 caused perf changes on windows-amd64:

net/http: cache transport environment lookup

Apparently this is expensive on Windows.

Fixes Issue 7020

R=golang-codereviews, alex.brainman, mattn.jp, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/52840043

http://code.google.com/p/go/source/detail?r=f16865e8a2c8

http-1                    old          new      delta
allocated                7660         7006      -8.54
allocs                     70           60     -14.29
time                   110329        99829      -9.52

http-8                    old          new      delta
allocated               12090        10970      -9.26
allocs                     91           79     -13.19
time                    44775        41061      -8.29

http://goperfd.appspot.com/perfdetail?commit=f16865e8a2c8349ce6a231f0629f1b98...
Sign in to reply to this message.

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