Compile Go programs 7x faster
github.com
Compile Go programs 7x faster
1–10 of 30 posts
Re: Compile Go programs 7x faster
#2Re: Compile Go programs 7x faster
#3Re: Compile Go programs 7x faster
#4This is basically a wrapper for 'go install'. See this post / linked blog posts for an explanation why this is faster/useful: https://twitter.com/davecheney/status/697171533215576064
go build builds everything, whereas go install does an incremental build on the stuff that has changed and installs it (either in GOPATH/bin or GOPATH/pkg).
Re: Compile Go programs 7x faster
#5Re: Compile Go programs 7x faster
#6This is basically a wrapper for 'go install'. See this post / linked blog posts for an explanation why this is faster/useful: https://twitter.com/davecheney/status/697171533215576064
guilty. typing in "go run" for quick scripts is one hard to conquer habit ;)
Re: Compile Go programs 7x faster
#7This is basically a wrapper for 'go install'. See this post / linked blog posts for an explanation why this is faster/useful: https://twitter.com/davecheney/status/697171533215576064
"all the go commands operate on packages, the use of files is a degenerate case only to support go run" guilty. typing in "go run" for quick scripts is one hard to conquer habit ;)
Re: Compile Go programs 7x faster
#8Re: Compile Go programs 7x faster
#9Maybe I'm daft, but his table says 502 lines in 1.558 seconds. So 322 lines/second. I thought the Go compiler was supposed to be amazingly fast? That is not fast at all.
Source: https://www.youtube.com/watch?v=WxyyJyB_Ssc
That would be a slowdown of like 4x to current javac, I guess his computer is just not good enough?
Re: Compile Go programs 7x faster
#10This is basically a wrapper for 'go install'. See this post / linked blog posts for an explanation why this is faster/useful: https://twitter.com/davecheney/status/697171533215576064
Yes, never use go build, always use go install! go build builds everything, whereas go install does an incremental build on the stuff that has changed and installs it (either in GOPATH/bin or GOPATH/pkg).
Shouldn't "go build" just do incremental builds and be faster across the board?