[go-nuts] Explosion in memory usage when compiling a big file

2017-01-08 Thread Dave Cheney
This is a somewhat known issue. Each token in a parsered .go file is represented by a Node structure inside the program. The Node structure is large, especially on 64 bit systems. Normally this is not a problem, but in th e case where code has large tables of data memory usage when compiling c

[go-nuts] Explosion in memory usage when compiling a big file

2017-01-08 Thread Vincent Rischmann
Hi, so I was trying to embed JS and HTML assets in a Go file using go-bindata and ended up with a Go file of 4Mib, and I noticed compiling it consumes all my system's memory. I'm on Windows and using the resource monitor I can see compile.exe memory usage grow to more than 15Gib in a couple of