Descriptionbytes: don't grow Buffer if capacity is available
Also added a new benchmark from the same test:
benchmark old ns/op new ns/op delta
BenchmarkBufferNotEmptyWriteRead 2643698 709189 -73.17%
Fixes Issue 5154
Patch Set 1 #Patch Set 2 : diff -r a3717460e37c https://go.googlecode.com/hg/ #Patch Set 3 : diff -r a3717460e37c https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 4 : diff -r a3717460e37c https://go.googlecode.com/hg/ #Patch Set 5 : diff -r e5ff184d8a45 https://go.googlecode.com/hg/ #
MessagesTotal messages: 11
|