1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:24:47 -07:00
go/src/reflect
Matthew Dempsky 86a338960d reflect: sort exported methods first
By moving exported methods to the front of method lists, filtering
down to only the exported methods just needs a count of how many
exported methods exist, which the compiler can statically
provide. This allows getting rid of the exported method cache.

For #22075.

Change-Id: I8eeb274563a2940e1347c34d673f843ae2569064
Reviewed-on: https://go-review.googlesource.com/100846
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-15 21:56:08 +00:00
..
all_test.go reflect: add embedded field test 2018-02-14 15:28:25 +00:00
asm_386.s
asm_amd64.s
asm_amd64p32.s
asm_arm64.s
asm_arm.s
asm_mips64x.s
asm_mipsx.s reflect: add support for GOARCH=mips{,le} 2016-11-03 23:01:05 +00:00
asm_ppc64x.s
asm_s390x.s
deepequal.go reflect: document how DeepEqual handles cycles 2017-08-04 22:22:03 +00:00
example_test.go reflect: add example for StructOf 2016-12-06 20:18:12 +00:00
export_test.go reflect: audit and explain safety of all unsafe.Pointer additions 2017-12-01 21:05:40 +00:00
makefunc.go runtime: clean up and improve reflect.methodValue comments 2016-12-19 21:02:53 +00:00
set_test.go reflect: check pkgPath for unexported methods in Implements 2017-06-08 00:54:14 +00:00
swapper.go reflect: audit and explain safety of all unsafe.Pointer additions 2017-12-01 21:05:40 +00:00
tostring_test.go
type.go reflect: sort exported methods first 2018-03-15 21:56:08 +00:00
value.go reflect: avoid calling common if type is known to be *rtype 2018-02-22 07:18:15 +00:00