From: Robert Griesemer Date: Tue, 29 Nov 2016 18:18:06 +0000 (-0800) Subject: cmd/compile/internal/syntax: remove unused node field X-Git-Tag: go1.8beta1~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=11f8676b1b92be5b7a41ee889796f5be6e03cb9b;p=gostls13.git 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 Reviewed-by: Matthew Dempsky --- diff --git a/src/cmd/compile/internal/syntax/nodes.go b/src/cmd/compile/internal/syntax/nodes.go index 87e39e00a3..fadba84bce 100644 --- a/src/cmd/compile/internal/syntax/nodes.go +++ b/src/cmd/compile/internal/syntax/nodes.go @@ -14,7 +14,8 @@ type Node interface { } type node struct { - doc *Comment // nil means no comment(s) attached + // commented out for now since not yet used + // doc *Comment // nil means no comment(s) attached pos uint32 line uint32 }