1
0
mirror of https://github.com/golang/go synced 2024-10-04 23:11:21 -06:00
go/src/cmd/asm
Russ Cox c413c45e6d cmd/internal/obj: make Prog.From3 a pointer
It is almost never set and Addr is large, so having the full struct
in the Prog wastes memory most of the time.

Before (on a 64-bit system):

$ sizeof -p cmd/internal/obj Addr Prog
Addr 80
Prog 376
$

After:

$ sizeof -p cmd/internal/obj Addr Prog
Addr 80
Prog 304
$

Change-Id: I491f201241f87543964a7d0f48b85830759be9d0
Reviewed-on: https://go-review.googlesource.com/10457
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
2015-05-29 16:19:02 +00:00
..
internal cmd/internal/obj: make Prog.From3 a pointer 2015-05-29 16:19:02 +00:00
main.go all: retire architecture letter in file names, public API 2015-05-21 17:32:17 +00:00