]> Cypherpunks repositories - gostls13.git/commit
rpc: keep free lists of Request and Response structures.
authorRob Pike <r@golang.org>
Fri, 18 Mar 2011 18:54:36 +0000 (11:54 -0700)
committerRob Pike <r@golang.org>
Fri, 18 Mar 2011 18:54:36 +0000 (11:54 -0700)
commit3a6c0990a46e6261b872f32b4ffe37751c99ad14
treed1fa448b2345c81181fd13cec8dfb6a01c3acb95
parentadd8c8db60940e8099f5cb9ff9af80c28763499e
rpc: keep free lists of Request and Response structures.
Also in the common case avoid unnecessary buffering in
the channel.
Removes 13 allocations per round trip. Now at 86, down from
144 a week ago.

R=rsc, bradfitzgo, r2, rsc1
CC=golang-dev
https://golang.org/cl/4277060
src/pkg/rpc/client.go
src/pkg/rpc/server.go