]> Cypherpunks repositories - gostls13.git/commit
rpc: add buffering to the encode path.
authorRob Pike <r@golang.org>
Tue, 15 Mar 2011 17:02:44 +0000 (10:02 -0700)
committerRob Pike <r@golang.org>
Tue, 15 Mar 2011 17:02:44 +0000 (10:02 -0700)
commita5697251411c73fa280de76d1ef86482f5e6ee30
tree296642ae4e8338a2c32c68b6b3494a2adbc196c6
parent31a72d1a53f8584a78f9d7c89a8951a553015ba4
rpc: add buffering to the encode path.
This reduces the number of writes by 2 (1 client, 1 server) on each round trip.
A simple test shows 24% higher throughput.

R=rsc
CC=golang-dev
https://golang.org/cl/4279057
src/pkg/rpc/client.go
src/pkg/rpc/server.go