Descriptionreflect: avoid allocation when interface's contents are not addressable
See issue 4949 for a full explanation.
Allocs go from 1 to zero in the non-addressable case.
Fixes issue 4949.
BenchmarkInterfaceBig 90 14 -84.01%
BenchmarkInterfaceSmall 14 14 +0.00%
Patch Set 1 #
Total comments: 2
Patch Set 2 : diff -r 9fae1e2e54a1 https://code.google.com/p/go/ #
MessagesTotal messages: 4
|