Recently done new projects, many libraries are the libraries that have been accumulated from previous projects. The IDE used under Windows is vs2013, the overall compile time, obviously feel the compilation speed is slow, the file is a one-part.
From the point of view of the compiler itself, VS2013 provides a way to speed up the compilation:
We can compile it in C + +, general-, and multi-processor , so that it launches multi-processor simultaneous compilation, but this /mp feature and/gm (minimum build) in code generation are conflicting and want to enable/MP, You have to turn the/gm off. The same project, with the/MP turned on and the/gm turned off, the compilation speed is significantly increased, and if you look at CPU usage, you'll see a spike in all CPU usage.
If you use make compile under Linux, you can add-j to make, which maximizes the efficiency of CPU cores and speeds up compilation.
vs2013 Improve compilation speed