Descriptionnet: reduce number of memory allocations during IO operations
Embed all data necessary for read/write operations directly into netFD.
benchmark old ns/op new ns/op delta
BenchmarkTCP4Persistent 27669 23341 -15.64%
BenchmarkTCP4Persistent-2 18173 12558 -30.90%
BenchmarkTCP4Persistent-4 10390 7319 -29.56%
This change will intentionally break all builders to see
how many allocations they do per read/write.
This will be fixed soon afterwards.
Patch Set 1 #Patch Set 2 : diff -r 74fe22b6b5f3 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 74fe22b6b5f3 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 74fe22b6b5f3 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 74fe22b6b5f3 https://go.googlecode.com/hg/ #Patch Set 6 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r 6423f26d0193 https://go.googlecode.com/hg/ #
Total comments: 6
Patch Set 8 : diff -r a29203f71b1f https://go.googlecode.com/hg/ #Patch Set 9 : diff -r a29203f71b1f https://go.googlecode.com/hg/ #
MessagesTotal messages: 9
|