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

Issue 12413043: code review 12413043: net: reduce number of memory allocations during IO oper... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dvyukov
Modified:
10 years, 8 months ago
Reviewers:
brainman
CC:
golang-dev
Visibility:
Public.

Description

net: reduce number of memory allocations during IO operations Embed all data necessary for read/write operations directly into netFD. benchmark old ns/op new ns/op delta BenchmarkTCP4Persistent 27669 23341 -15.64% BenchmarkTCP4Persistent-2 18173 12558 -30.90% BenchmarkTCP4Persistent-4 10390 7319 -29.56% This change will intentionally break all builders to see how many allocations they do per read/write. This will be fixed soon afterwards.

Patch Set 1 #

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

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

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

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

Patch Set 6 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 8 : diff -r a29203f71b1f https://go.googlecode.com/hg/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -244 lines) Patch
M src/pkg/net/fd_windows.go View 1 2 3 4 5 6 7 16 chunks +113 lines, -215 lines 0 comments Download
M src/pkg/net/sendfile_windows.go View 1 2 3 4 5 6 7 3 chunks +11 lines, -25 lines 0 comments Download
M src/pkg/net/tcp_test.go View 1 2 3 4 5 6 7 8 2 chunks +44 lines, -0 lines 0 comments Download
M src/pkg/runtime/netpoll_windows.c View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 8 months ago (2013-08-03 16:11:20 UTC) #1
brainman
Please add a test. Alex
10 years, 8 months ago (2013-08-04 03:31:42 UTC) #2
dvyukov
On 2013/08/04 03:31:42, brainman wrote: > Please add a test. Done PTAL
10 years, 8 months ago (2013-08-04 10:36:13 UTC) #3
brainman
LGTM if you agree with my suggestions. It is much simpler now, thank you very ...
10 years, 8 months ago (2013-08-05 00:48:29 UTC) #4
brainman
One more. Alex https://codereview.appspot.com/12413043/diff/19001/src/pkg/net/tcp_test.go File src/pkg/net/tcp_test.go (right): https://codereview.appspot.com/12413043/diff/19001/src/pkg/net/tcp_test.go#newcode301 src/pkg/net/tcp_test.go:301: switch runtime.GOOS { I think we ...
10 years, 8 months ago (2013-08-05 01:59:21 UTC) #5
dvyukov
On 2013/08/05 00:48:29, brainman wrote: > LGTM > > if you agree with my suggestions. ...
10 years, 8 months ago (2013-08-06 10:26:36 UTC) #6
dvyukov
On 2013/08/05 01:59:21, brainman wrote: > One more. > > Alex > > https://codereview.appspot.com/12413043/diff/19001/src/pkg/net/tcp_test.go > ...
10 years, 8 months ago (2013-08-06 10:27:03 UTC) #7
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=48f7c4dd87fe *** net: reduce number of memory allocations during IO operations Embed ...
10 years, 8 months ago (2013-08-06 10:40:33 UTC) #8
brainman
10 years, 8 months ago (2013-08-07 02:34:56 UTC) #9
Message was sent while issue was closed.
I just noticed that this is broken on my Windows XP pc (windows-386).

https://code.google.com/p/go/issues/detail?id=6063

Surprisingly, both windows builders are fine. It must be one of those "syscall
does not exist here, so I am using different logic" scenarios.

Alex
Sign in to reply to this message.

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