]> Cypherpunks repositories - gostls13.git/commit
net: remove unnecessary Close contention.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 1 Dec 2012 08:26:07 +0000 (09:26 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 1 Dec 2012 08:26:07 +0000 (09:26 +0100)
commitb18a7c7caeca314f71326cfa9b59ea3bbcbf0850
tree61bd486b2f89a925e9b240153eef229a9200713a
parente3e885bb481731370573e99ac20fd93ed652ae9a
net: remove unnecessary Close contention.

Contention profile in BenchmarkTCPOneShot (Core 2 Quad):

Before
Total: 80.285 seconds
44.743  55.7%  55.7%   44.743  55.7% runtime.chanrecv1
31.995  39.9%  95.6%   31.995  39.9% sync.(*Mutex).Lock
 3.547   4.4% 100.0%    3.547   4.4% runtime.chansend1

After
Total: 48.341 seconds
45.810  94.8%  94.8%   45.810  94.8% runtime.chanrecv1
 2.530   5.2% 100.0%    2.530   5.2% runtime.chansend1
 0.001   0.0% 100.0%    0.001   0.0% sync.(*Mutex).Lock

R=golang-dev, dave, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/6845119
src/pkg/net/fd_unix.go
src/pkg/net/sock_posix.go