Skip to content

Commit 11f8676

Browse files
committed
cmd/compile/internal/syntax: remove unused node field
The doc field is not yet used - remove it for now (we may end up with a different solution for 1.9). This reduces memory consumption for parsing all of std lib by about 40MB and makes parsing slightly faster. Change-Id: Iafb00b9c7f1be9c66fdfb29096d3da5049b2fcf5 Reviewed-on: https://go-review.googlesource.com/33661 Reviewed-by: Brad Fitzpatrick <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent 0d163ce commit 11f8676

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmd/compile/internal/syntax/nodes.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ type Node interface {
1414
}
1515

1616
type node struct {
17-
doc *Comment // nil means no comment(s) attached
17+
// commented out for now since not yet used
18+
// doc *Comment // nil means no comment(s) attached
1819
pos uint32
1920
line uint32
2021
}

0 commit comments

Comments
 (0)