Descriptionencoding/binary: speed up writing slices of integers
Simple approach. Still generates garbage, but not as much.
benchmark old ns/op new ns/op delta
BenchmarkWriteSlice1000Int32s 40260 18791 -53.33%
benchmark old MB/s new MB/s speedup
BenchmarkWriteSlice1000Int32s 99.35 212.87 2.14x
Fixes issue 2634.
Patch Set 1 #Patch Set 2 : diff -r 70d8d820bfe6 https://code.google.com/p/go/ #Patch Set 3 : diff -r 70d8d820bfe6 https://code.google.com/p/go/ #Patch Set 4 : diff -r b20db4bc66df https://code.google.com/p/go/ #
MessagesTotal messages: 7
|