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

Issue 4272057: code review 4272057: net: Don't force epoll/kqueue to wake up in order to ad... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 7 months ago by iant
Modified:
14 years, 7 months ago
Reviewers:
CC:
rsc, iant2, golang-dev
Visibility:
Public.

Description

net: Don't force epoll/kqueue to wake up in order to add new events. In conjunction with the non-blocking system call CL, this gives about an 8% performance improvement on a client/server test running on my local machine.

Patch Set 1 #

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

Total comments: 7

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

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

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

Patch Set 6 : diff -r 019f864d5532 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r 019f864d5532 https://go.googlecode.com/hg/ #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -35 lines) Patch
M src/pkg/net/fd.go View 1 2 3 8 chunks +30 lines, -32 lines 0 comments Download
M src/pkg/net/fd_darwin.go View 2 chunks +5 lines, -1 line 0 comments Download
M src/pkg/net/fd_freebsd.go View 2 chunks +5 lines, -1 line 0 comments Download
M src/pkg/net/fd_linux.go View 1 2 6 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 5
iant
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 7 months ago (2011-03-16 22:55:12 UTC) #1
rsc
LGTM The Linux comments apply to the other systems too. http://codereview.appspot.com/4272057/diff/3001/src/pkg/net/fd.go File src/pkg/net/fd.go (right): http://codereview.appspot.com/4272057/diff/3001/src/pkg/net/fd.go#newcode5 ...
14 years, 7 months ago (2011-03-17 05:19:44 UTC) #2
iant2
rsc@golang.org writes: > http://codereview.appspot.com/4272057/diff/3001/src/pkg/net/fd_linux.go#newcode44 > src/pkg/net/fd_linux.go:44: var ev syscall.EpollEvent > This is a malloc because ...
14 years, 7 months ago (2011-03-17 15:45:11 UTC) #3
rsc
> I was going to do that in a separate CL which makes fd_linux.go like ...
14 years, 7 months ago (2011-03-17 15:50:50 UTC) #4
iant
14 years, 7 months ago (2011-03-17 20:42:43 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=af282843c33a ***

net: Don't force epoll/kqueue to wake up in order to add new events.

In conjunction with the non-blocking system call CL, this
gives about an 8% performance improvement on a client/server
test running on my local machine.

R=rsc, iant2
CC=golang-dev
http://codereview.appspot.com/4272057
Sign in to reply to this message.

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