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

Issue 12409044: code review 12409044: net: use SetFileCompletionNotificationModes on windows ... (Closed)

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

Description

net: use SetFileCompletionNotificationModes on windows if available This allows to skip GetQueuedCompletionStatus if an IO operation completes synchronously. benchmark old ns/op new ns/op delta BenchmarkTCP4Persistent 27669 25863 -6.53% BenchmarkTCP4Persistent-2 18173 15908 -12.46% BenchmarkTCP4Persistent-4 10390 9766 -6.01%

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 bf1cd157b3e0 https://go.googlecode.com/hg/ #

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

Total comments: 2

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

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

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

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

Total comments: 9

Patch Set 10 : diff -r 60d62a3b3991 https://dvyukov%40google.com@code.google.com/p/go/ #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -275 lines) Patch
M src/pkg/net/fd_windows.go View 1 2 3 4 5 6 7 8 9 5 chunks +53 lines, -9 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 5 6 2 chunks +160 lines, -133 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_amd64.go View 1 2 3 4 5 6 2 chunks +160 lines, -133 lines 0 comments Download
M src/pkg/syscall/ztypes_windows.go View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 17
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 3 months ago (2013-08-03 12:15:43 UTC) #1
mikio
On Sat, Aug 3, 2013 at 9:15 PM, <dvyukov@google.com> wrote: > This allows to skip ...
11 years, 3 months ago (2013-08-03 13:18:00 UTC) #2
dvyukov
Yes On Aug 3, 2013 5:18 PM, "Mikio Hara" <mikioh.mikioh@gmail.com> wrote: > On Sat, Aug ...
11 years, 3 months ago (2013-08-03 13:24:13 UTC) #3
dvyukov
Hello golang-dev@googlegroups.com, mikioh.mikioh@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-08-03 16:29:59 UTC) #4
brainman
Speed up is nice, but I am concerned with validity of this change. Alex https://codereview.appspot.com/12409044/diff/13001/src/pkg/net/fd_windows.go ...
11 years, 3 months ago (2013-08-04 02:48:08 UTC) #5
dvyukov
On 2013/08/04 02:48:08, brainman wrote: > Speed up is nice, but I am concerned with ...
11 years, 3 months ago (2013-08-04 10:02:08 UTC) #6
dvyukov
Hello golang-dev@googlegroups.com, mikioh.mikioh@gmail.com, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-08-04 15:58:41 UTC) #7
dvyukov
On Sun, Aug 4, 2013 at 2:02 PM, <dvyukov@google.com> wrote: > On 2013/08/04 02:48:08, brainman ...
11 years, 3 months ago (2013-08-04 16:01:29 UTC) #8
brainman
It looks reasonable, but lets land https://codereview.appspot.com/12413043/ first. Please, ping me when ready. Thank you. ...
11 years, 3 months ago (2013-08-05 00:55:02 UTC) #9
dvyukov
On 2013/08/05 00:55:02, brainman wrote: > It looks reasonable, but lets land https://codereview.appspot.com/12413043/ > first. ...
11 years, 3 months ago (2013-08-06 10:58:48 UTC) #10
brainman
Here https://code.google.com/p/go/issues/detail?id=6063#c4 are all my suggestions incorporated and more. But I will try to understand ...
11 years, 3 months ago (2013-08-07 06:22:34 UTC) #11
brainman
On 2013/08/07 06:22:34, brainman wrote: > Here https://code.google.com/p/go/issues/detail?id=6063#c4 are ... It does not compile. Try ...
11 years, 3 months ago (2013-08-07 06:58:41 UTC) #12
dvyukov
PTAL https://codereview.appspot.com/12409044/diff/29001/src/pkg/net/fd_windows.go File src/pkg/net/fd_windows.go (right): https://codereview.appspot.com/12409044/diff/29001/src/pkg/net/fd_windows.go#newcode49 src/pkg/net/fd_windows.go:49: if hasLoadSetFileCompletionNotificationModes { On 2013/08/07 06:22:34, brainman wrote: ...
11 years, 3 months ago (2013-08-07 20:48:10 UTC) #13
brainman
On 2013/08/07 20:48:10, dvyukov wrote: > ... > if hasLoadSetFileCompletionNotificationModes false, nothing must be affected, ...
11 years, 3 months ago (2013-08-07 23:18:44 UTC) #14
brainman
On 2013/08/07 23:18:44, brainman wrote: > > > ... Are you sure it reliably passed ...
11 years, 3 months ago (2013-08-08 01:27:30 UTC) #15
brainman
LGTM Alex
11 years, 3 months ago (2013-08-08 06:40:00 UTC) #16
dvyukov
11 years, 3 months ago (2013-08-08 13:37:00 UTC) #17
*** Submitted as https://code.google.com/p/go/source/detail?r=b05fc0deff82 ***

net: use SetFileCompletionNotificationModes on windows if available
This allows to skip GetQueuedCompletionStatus if an IO operation completes
synchronously.
benchmark                    old ns/op    new ns/op    delta
BenchmarkTCP4Persistent          27669        25863   -6.53%
BenchmarkTCP4Persistent-2        18173        15908  -12.46%
BenchmarkTCP4Persistent-4        10390         9766   -6.01%

R=golang-dev, mikioh.mikioh, alex.brainman
CC=golang-dev
https://codereview.appspot.com/12409044
Sign in to reply to this message.

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