Visual Studio 2015 supports modules. I'm excited about this feature, and although I know it has important implications over and above build time, that's my interest right now. I'm thinking of larger code bases of the order of half a million lines of code or more, which have a lot of #include
s in header files.
My previous approach to this would have been to manually or automatically remove the unnecessary includes in favor of forward declarations, etc, and then use precompiled headers. The result would typically be a significant improvement in build times, from memory of the order of 2-3 times. Now it seems like I should consider using modules, which might be a lot less effort and deliver arguably a better engineered and more future-proof solution.
Can anyone comment as to the potential effect on compile speed of going down the module route instead, for larger code bases measured in 100s of thousands or millions of lines of code?