]> Cypherpunks repositories - gostls13.git/commit
net/http: remove two more server allocations per-request
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Mar 2013 20:07:14 +0000 (13:07 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 28 Mar 2013 20:07:14 +0000 (13:07 -0700)
commit42a840860f60b3e66c7bcd755795d193935a05cc
tree0368815ed3318b3aed8f7735935cb1bddeedd302
parent04341b246e14608472527f73577f46024e6c3ec1
net/http: remove two more server allocations per-request

benchmark                                   old ns/op    new ns/op    delta
BenchmarkServerFakeConnWithKeepAliveLite        11031        10689   -3.10%

benchmark                                  old allocs   new allocs    delta
BenchmarkServerFakeConnWithKeepAliveLite           23           21   -8.70%

benchmark                                   old bytes    new bytes    delta
BenchmarkServerFakeConnWithKeepAliveLite         1668         1626   -2.52%

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/8110044
src/pkg/net/http/server.go