团结建设的好处/缺点? [英] The benefits / disadvantages of unity builds?
本文介绍了团结建设的好处/缺点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从一个新公司开始,我注意到他们使用unity cpp文件为我们的大多数解决方案,我想知道是否有人能够给我一个明确的理由,为什么和如何这些加速构建处理?我会认为在unity文件中编辑一个cpp文件将强制重新编译所有这些文件。
Since starting at a new company I've noticed that they use unity cpp files for the majority of our solution, and I was wondering if anyone is able to give me a definitive reason as to why and how these speed up the build process? I would've thought that editing one cpp file in the unity files will force recompilation of all of them.
推荐答案
和好的答案: #include所有.cpp文件到一个编译单元?
总结似乎是较少的I / O开销是主要的好处。
The summary seems to be that less I/O overhead is the major benefit.
另请参阅 The Unity of Unity Builds 以及上述问题中的链接。
See also The Magic Of Unity Builds as linked in the above question as well.
这篇关于团结建设的好处/缺点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文