Hello, I've been playing around with one specific library and trying to speed up my build times.
The library is https://github.com/mattn/go-sqlite3 which uses cgo and takes ~45sec to compile. I initially noticed that go build was being slow on packages that imported go-sqlite3, and top revealed that C compilation was the cause. I ran go install github.com/mattn/go-sqlite3 and then my go build was now fast. go test had the same problem (took ~45s w/c compiler). It continued to do this even when go-sqlite3 was installed. I tried go test -i after seeing a suggestion. That command does seem to install go-sqlite3 (it took a while and had similar top activity)..but when I ran go test after that, go test was slow and was once again compiling this library. Some details about my environment: - I'm using Nix to manage my project, which may result in some symlinks? Maybe those are throwing things off. - go version go1.11 linux/amd64 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.