aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-11-29 10:18:06 -0800
committerRobert Griesemer <gri@golang.org>2016-11-29 20:46:19 +0000
commit11f8676b1b92be5b7a41ee889796f5be6e03cb9b (patch)
tree45af93638025218898a327579d8db1e2aeec87d9
parent0d163ce1c95d03a173eba246de6d45db69e678ac (diff)
downloadgo-11f8676b1b92be5b7a41ee889796f5be6e03cb9b.tar.gz
go-11f8676b1b92be5b7a41ee889796f5be6e03cb9b.zip
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 <bradfitz@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
-rw-r--r--src/cmd/compile/internal/syntax/nodes.go3
1 files changed, 2 insertions, 1 deletions
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
}