Descriptiongob: avoid one copy for every message written.
Plus the need for a second in-memory buffer.
Plays a bit fast and loose with the contents of a byte buffer,
but saves a potentially huge allocation. The gotest
run is about 10% faster overall after this change.
Patch Set 1 #Patch Set 2 : diff -r 9aee6c904aa5 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 9aee6c904aa5 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r ac0ddebb51b7 https://go.googlecode.com/hg/ #
MessagesTotal messages: 7
|