How to improve Golang compilation speed?
compilation, go, performance, sqlite
Solution
Try `go install -a github.com/mattn/go-sqlite3` which will install the compiled-against-Go-1.3 package into your $GOPATH.
Right now, you likely have an older version installed under `$GOPATH/pkg/` and therefore Go is recompiling it for every build.
Problem
I'm trying to find a way to make the compilation of a Go program faster. It is currently about 30 seconds, which makes it slow to work with the project. When I run `go build -v`, I see that most of the time is spent compiling go-sqlite3 (which links to the C sqlite lib). However, since this lib never changes, I'm wondering if it's possible to prevent the build tool from recompiling this every time?