]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: don't generate algs for internal map types.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 14 Sep 2013 07:30:36 +0000 (09:30 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Sat, 14 Sep 2013 07:30:36 +0000 (09:30 +0200)
commit04c40c97c3a76368f878126259fb5d33e0515aaa
tree8647e13885b3903cc8d83e26e5ef33bfb32da759
parent22e8f82e8d4b62a4c96a82d4f731606a87db8d09
cmd/gc: don't generate algs for internal map types.

Fake types describing the internal structure of hashmaps are
generated for use by precise GC.

Generating hash and eq functions for these fake types slows down
the build and wastes space: the go tool binary size is 13MB
instead of 12MB, and the package size on amd64 is 48.7MB instead
of 45.3MB.

R=golang-dev, daniel.morsing, r, khr, rsc, iant
CC=golang-dev
https://golang.org/cl/13698043
src/cmd/gc/go.h
src/cmd/gc/reflect.c
src/cmd/gc/subr.c