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

Issue 7126043: code review 7126043: syscall: introduce WriteNB (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by dave
Modified:
13 years, 5 months ago
Visibility:
Public.

Description

syscall: introduce WriteNB Update issue 3412. This proposal introduces the underlying syscall.WriteNB mechanism to be used by net.Conn.Write as discussed in CL 6813046. The WriteNB function is defined for all platforms, but for the moment only issues a RawSyscall on linux.

Patch Set 1 #

Patch Set 2 : diff -r fce9621c9927 https://code.google.com/p/go #

Patch Set 3 : diff -r fce9621c9927 https://code.google.com/p/go #

Total comments: 4

Patch Set 4 : diff -r 9a3e56fe880c https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -0 lines) Patch
M src/pkg/syscall/syscall_darwin.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_freebsd.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_linux.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/syscall/syscall_netbsd.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_openbsd.go View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/syscall/syscall_unix.go View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_386.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_darwin_amd64.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_386.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_amd64.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_freebsd_arm.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_386.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_amd64.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_linux_arm.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_netbsd_386.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_netbsd_amd64.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_386.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M src/pkg/syscall/zsyscall_openbsd_amd64.go View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 15
dave_cheney.net
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
13 years, 5 months ago (2013-01-16 00:13:48 UTC) #1
iant
exec_windows.go has a SetNonblock call; should Windows also have WriteNB for consistency? A random thought: ...
13 years, 5 months ago (2013-01-16 00:57:44 UTC) #2
bradfitz
I agree Windows should have WriteNB for consistency. > A random thought: the syscall package ...
13 years, 5 months ago (2013-01-16 01:18:33 UTC) #3
dave_cheney.net
I would like to disagreed. This change is intended to work hand in hand with ...
13 years, 5 months ago (2013-01-16 01:38:59 UTC) #4
bradfitz
Oh, if package net can remain a one line patch I'm fine with pkg syscall ...
13 years, 5 months ago (2013-01-16 01:42:41 UTC) #5
dave_cheney.net
Yes, we're lucky that this can be a surgical incision. Plan9 and Windows may be ...
13 years, 5 months ago (2013-01-16 01:45:33 UTC) #6
dave_cheney.net
Please take another look @iant. as discussed I have avoided adding support for windows at ...
13 years, 5 months ago (2013-01-16 02:40:41 UTC) #7
Sebastien Paolacci
Hi Dave, Here's a bench on a "representative" (to us) box. Median of 10 runs, ...
13 years, 5 months ago (2013-01-16 08:27:12 UTC) #8
Sebastien Paolacci
As Remy judiciously noted, actually using the WriteNB call might help in getting useful results. ...
13 years, 5 months ago (2013-01-16 10:02:16 UTC) #9
dave_cheney.net
Hi Sebastien, Thank you for taking the time to benchmark this change. I've done some ...
13 years, 5 months ago (2013-01-17 11:04:19 UTC) #10
Sebastien Paolacci
Hi Dave, > Do you think that there is anything I have missed ? Given ...
13 years, 5 months ago (2013-01-18 21:34:02 UTC) #11
dave_cheney.net
> Given that I made independently made the same tests & bench one few weeks ...
13 years, 5 months ago (2013-01-18 22:40:58 UTC) #12
dvyukov
On 2013/01/18 22:40:58, dfc wrote: > > Given that I made independently made the same ...
13 years, 5 months ago (2013-01-23 07:56:27 UTC) #13
rsc
NOT LGTM See my comment on the CL using this.
13 years, 5 months ago (2013-01-30 16:59:25 UTC) #14
dave_cheney.net
13 years, 5 months ago (2013-01-30 23:48:12 UTC) #15
*** Abandoned ***
Sign in to reply to this message.

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