Descriptiongob: use bufio on the decode to avoid a system call on each read.
Add a benchmark.
BenchmarkEndToEndPipe gives 14.3microseconds/op before,
13.1microseconds/op after, or about 76e3 round trips per second
through the kernel.
With a bytes buffer, and therefore no system calls for I/O, the
numbers go to 7.3microseconds/op, or about 137e3 round trips
per second.
Patch Set 1 #Patch Set 2 : diff -r cba623104224 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|