|
|
|
|
|
by TopInvestor
2062 days ago
|
|
Fast compilation was one of the main reasons Golang was invented. The gradual accumulation of #include clauses in C programs scales very badly. A large distributed compilation system was created in Google to handle the slow compilation. One reason is you never know if some #include is actually needed. In Golang unused dependencies are a compile-time error. The generated object file includes type information for all related import dependencies in binary format. This speeds up the compilation significantly. |
|