On Wed, Oct 2, 2024 at 10:11 AM opennota <openn...@gmail.com> wrote: > > Cold-start builds are slow af on my machine (think tens of minutes), and have > been like that since around Go 1.20. (See also maybe related > https://github.com/golang/go/issues/38939). Is there a way to profile `go > build` to determine why it takes it so long to build even a simple > hello-world program?
In some cases you can get an initial look by running "go build -x -toolexec time PROG". Although the output is a bit cluttered, that will show you the commands being executed and how long they take to run. Perhaps that will suggest something. Ian -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUYSLwneW8%2B5ndfEmYVzhxUu%3DQJcOSBfBqstEsiehRduw%40mail.gmail.com.