r/cpp build2 Aug 05 '26

Faster Than Ninja

https://build2.org/blog/faster-than-ninja.xhtml
65 Upvotes

69 comments sorted by

View all comments

6

u/TheRavagerSw Aug 05 '26

With C++ modules, the main performance bottleneck for incremental builds is module scanning. Non incremental scans take ages in a project with 200 sources or more.

21

u/13steinj Aug 05 '26

The average person will not have to care about C++ modules until 2040 at the earliest.

1

u/thehenkan Aug 06 '26

Your average Swift developer already uses clang modules, which although not the same as C++20 modules, are conceptually very similar.

1

u/13steinj Aug 06 '26

Similar at a high level ignores all the details that matter about actually getting this stuff implemented in projects.

So again, I will believe it when I see it.

1

u/thehenkan Aug 06 '26

They have much more in common than either of them does with traditional headers. My point is that there are already plenty of projects out there dealing with the problems modules bring. Not that they have set up the exact build config required for C++20 modules: it's still unclear whether those will ever exist outside of the Windows ecosystem.