Compilation time vs. C++

In fact gfortran + cmake already fix this. You can try it yourself, just add a print statement to some function in a module, and dependent modules will not be recompiled. So this is fixed in practice.

Yes, the compilation speed of C++ depends on how many templates you use, as well as how many header files you include with templates and compile time computation.

2 Likes