]> Cypherpunks repositories - gostls13.git/commit
cmd/yacc: memory allocation improvements
authorTamir Duberstein <tamird@gmail.com>
Mon, 9 Nov 2015 15:34:02 +0000 (10:34 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 26 Nov 2015 17:42:14 +0000 (17:42 +0000)
commitadf4c38b6ec08bcdeed09cdc733fa6014f0500c9
tree022abaa63598a19d333319c9d4d1dec9742181b1
parentdb4ef216cc8d9c17f6d10d8682a46d8077b203d0
cmd/yacc: memory allocation improvements

Places a fixed size initial stack and the lval inside the parser
struct so that they are allocated together. Places $$char inside the
parser struct to avoid allocating the closure used in Lookahead().

Change-Id: I0de664a6d612279fdc3255633e2dff904030bc36
Reviewed-on: https://go-review.googlesource.com/16705
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/yacc/yacc.go