I've been playing around with some large visual studio C++ projects, and it seems that more time is spent building the precompiled header than the individual source files.
I've since made some changes to the project itself (enabled the /MP
flag and set the max number of jobs in "Tools ==> Options"), and the builds seem to be about 10% faster, but not nearly as great an improvement as the Linux versions of the same projects, which run nearly 4-5x faster when specifying the -j
option in make
.
First, are there any other options that need to be set to take advantage of multi-core systems for improving build speed, particularly with generating the precompiled header?
Second, it seems that by enabling multi-processor support, I can no longer do "incremental builds". If I understand this correctly, each "Build" would be the same as a full "Rebuild" or "Clean, Build" operation. Is this so? Last I checked, GNU makefile projects don't suffer from this limitation if the makefile is written properly, so it seems odd such a modern and expensive tool as Visual Studio would suffer from such an issue.
Thank you.