3 ms·
For smaller C++ projects this tends to be way faster than the conventional wisdom of having many CUs, mostly because all the library bloat will only be parsed a
by formerly_proven 4y ago
For smaller C++ projects this tends to be way faster than the conventional wisdom of having many CUs, mostly because all the library bloat will only be parsed and instantiated once.
- kringerkat 4y agoAlso reduces link time. I find that projects up to around 50K lines compiles instantly as a single file/"unity build" and is my preferred way for most of my projects.
- arinlen 4y ago> Also reduces link time. It's important to stress that it does more than reduce link time: unity builds completely eliminate linking when plugging together submodules, and the final project linking simply has far fewer object files to link.
- Asooka 4y agoThis really should be solved at the compiler level, rather than forcing people to restructure their projects.