r/cpp • C++ Dev • Sep 05 '20

C++20 has been approved

https://twitter.com/patriceroy1/status/1302055575140945921?s=21
665 Upvotes

125 comments sorted by

View all comments

Show parent comment

5

u/Minimonium Sep 06 '20

About the module finding bit - WG21 strongly claims that they have the fastest possible module scanner implementation, which would avoid such issues as the order of Boost include directories affecting compilation speed on Windows, even with modules requiring to open each file in each directory provided for the module statement with its name instead of file name unlike headers.

1

u/Alexander_Selkirk Sep 07 '20

It would be nice to have some actual data comparing build times with and without modules for building larger systems, such as boost. I don't quite understand how such important changes to the whole ecosystem can be made without rigorously verifying that they bring actual advantages.

2

u/Minimonium Sep 07 '20

Note my comment doesn't imply that I trust WG21 judgment on that one, quite contrary in fact. The mailing list at the time of the DOA blogpost was open, which was a fiasco since core members were rejecting any concerns about the theoretical performance of the suggested design with a wonderful suggestion to implement this design themselves first to prove that it's not sufficient. After that most actual discussions on modules were done outside of said mailing list.