From 11f8676b1b92be5b7a41ee889796f5be6e03cb9b Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 29 Nov 2016 10:18:06 -0800 Subject: [PATCH] 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 --- src/cmd/compile/internal/syntax/nodes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.50.0