]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: improve obj.ProgInfo struct layout
authorDave Cheney <dave@cheney.net>
Thu, 8 Oct 2015 09:14:03 +0000 (20:14 +1100)
committerDave Cheney <dave@cheney.net>
Thu, 8 Oct 2015 20:57:54 +0000 (20:57 +0000)
commitb795ce9ab0cce86f9f76904a9f933b11ac993c8a
tree4347db41683a89904263e6894023f08a93bd756e
parent3c2febb748600a051e276347b0bf0960421ca723
cmd/internal/obj: improve obj.ProgInfo struct layout

obj.ProgInfo is a field inside obj.Prog, which is currently 320 bytes
on 64bit platforms. By moving the Flags field below the other fields
the size of obj.Prog drops into the 288 byte size class, a saving of
32 bytes per value allocated on the heap.

Change-Id: If8bb12f45328996d7df1d0bac9d1c019d2af73bd
Reviewed-on: https://go-review.googlesource.com/15522
Run-TryBot: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/internal/obj/link.go