commit | 94179d61abf9516e24597ec8fa3888343d01388c | [log] [tgz] |
---|---|---|
author | Rob Pike <r@golang.org> | Fri Aug 09 10:49:01 2013 +1000 |
committer | Rob Pike <r@golang.org> | Fri Aug 09 10:49:01 2013 +1000 |
tree | cba24565b3c630e75f67d9b6d862a2882cf6723f | |
parent | d2bff757f6043d9a6f61616ac7dd78ca30442cb4 [diff] |
reflect: 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 #4949. BenchmarkInterfaceBig 90 14 -84.01% BenchmarkInterfaceSmall 14 14 +0.00% R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12646043