Descriptionencoding/binary: fast path for reading slices
Again, it still allocates but the code is simple.
benchmark old ns/op new ns/op delta
BenchmarkReadSlice1000Int32s 35580 11465 -67.78%
benchmark old MB/s new MB/s speedup
BenchmarkReadSlice1000Int32s 112.42 348.86 3.10x
Patch Set 1 #
Total comments: 2
Patch Set 2 : diff -r 6eaeab5759f0 https://code.google.com/p/go/ #
Total comments: 1
MessagesTotal messages: 4
|