Hacker News new | past | comments | ask | show | jobs | submit login

360kloc certainly meets my definition of extraordinarily ambitious for a personal project. :) Well done you!

"Unity" builds certainly can speed up project compilation when used judiciously. This is easily shown by imagining an absurd C++ codebase where each method or function is in its own module. This would increase the overhead of parsing .h files. Any two functions that could be combined into one while keeping the h files included the same would almost certainly reduce this overhead. But I doubt your project would compile faster if all of the cc files were combined into one.




> This is easily shown by imagining an absurd C++ codebase where each method or function is in its own module

That's the musl codebase, in C. It does this in order to be able to remove unused code in a static build.

It compiles ridiculously fast. So the problem does not seem to be the amount of headers.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: