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.
Go – How does Go compile so quickly
build-processcompiler-constructiongoperformance
Best Answer
Dependency analysis.
The Go FAQ used to contain the following sentence:
While the phrase is not in the FAQ anymore, this topic is elaborated upon in the talk Go at Google, which compares the dependency analysis approach of C/C++ and Go.
That is the main reason of fast compilation. And this is by design.