]> Cypherpunks repositories - gostls13.git/commit
runtime: eliminate handle churn when churning channels on Windows
authorHector Chu <hectorchu@gmail.com>
Thu, 15 Sep 2011 00:23:21 +0000 (20:23 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 15 Sep 2011 00:23:21 +0000 (20:23 -0400)
commit5c3032598344555e117f863f9c4227f5659ce3ab
tree00f37f26ab88b62725f7c4b16b2ea2b9e2a343d7
parente076c502dda7da7308599c20c5f482e67edf6855
runtime: eliminate handle churn when churning channels on Windows

The Windows implementation of the net package churns through a couple of channels for every read/write operation.  This translates into a lot of time spent in the kernel creating and deleting event objects.

R=rsc, dvyukov, alex.brainman, jp
CC=golang-dev
https://golang.org/cl/4997044
src/pkg/runtime/mgc0.c
src/pkg/runtime/runtime.h
src/pkg/runtime/windows/thread.c