]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/gc: rearrange Node fields
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 18 May 2015 22:49:02 +0000 (15:49 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 18 May 2015 22:52:34 +0000 (22:52 +0000)
commit82833b313e5e23f67d5ed1141d9a2464bf78f277
tree1ef883a1680cf89c85732fa2af616b1988e299b7
parentf4ab8203bab58b3c4ae53a99535719a747d05332
cmd/internal/gc: rearrange Node fields

Rearrange Node fields to enable better struct packing.
This reduces readability in favor of shrinking
the size of Nodes.

This reduces the size of Node from 328 to 312.
This reduces the memory usage to compile the
rotate tests by about 4.4%.

No functional changes. Passes toolstash -cmp.

Updates #9933.

Change-Id: I2764c5847fb1635ddc898e2ee385d007d67f03c5
Reviewed-on: https://go-review.googlesource.com/10141
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/internal/gc/syntax.go