Descriptionnet/http: inline chunkWriter in response
A chunkWriter and a response are 1:1. Make them contiguous in
memory and save an allocation.
benchmark old ns/op new ns/op delta
BenchmarkServerFakeConnWithKeepAliveLite 10715 10539 -1.64%
benchmark old allocs new allocs delta
BenchmarkServerFakeConnWithKeepAliveLite 21 20 -4.76%
benchmark old bytes new bytes delta
BenchmarkServerFakeConnWithKeepAliveLite 1626 1609 -1.05%
Patch Set 1 #Patch Set 2 : diff -r a259257225e8 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r a259257225e8 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r a259257225e8 https://go.googlecode.com/hg/ #MessagesTotal messages: 3
|