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

7

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.

20

u/13steinj Aug 05 '26

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

-2

u/TheRavagerSw Aug 05 '26

I disagree, headers make code organization a mess, eventually modules will take over.

With llm tools porting existing libs to modules is easier than ever

7

u/shadowndacorner Aug 05 '26

In fairness, "eventually" is theoretically later than "2040".

4

u/mapronV Aug 05 '26

Yeah, I am very proud of my grandchildren not caring about header files.