How does Go compile so quickly?

I’ve Googled and poked around the Go website, but I can’t seem to find an explanation for Go’s extraordinary build times. Are they products of the language features (or lack thereof), a highly optimized compiler, or something else? I’m not trying to promote Go; I’m just curious.

2 Likes

Dependency analysis.

From the Go FAQ:

Go provides a model for software construction that makes dependency analysis easy and avoids much of the overhead of C-style include files and libraries.

That is the main reason of fast compilation. And this is by design.

Refer: stackoverflow.com