产品减少 c++ 编译时间?
是否有任何产品可以减少 C++ 构建时间? 可以和msvc一起使用吗?
Are there any products that will decrease c++ build times? that can be used with msvc?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
查看 MPCL。
这是 Microsoft Visual C++ 2005 和 Visual C++2008 的插件,可以最大限度地利用 CPU,从而最大限度地缩短项目的编译时间。
它并行编译同一项目的多个.c / .cpp 文件以实现它。 当您拥有双核/四核/多核处理器时,这特别有用。
Look at MPCL.
This is a plug-in for Microsoft Visual C++ 2005 and Visual C++2008, which allow to maximize the use of the CPU in order to minimize the compiling time of your project.
It compiles several .c / .cpp files of the same project in parallel in order to achieve it. This is specially usefull when you have a Dual core / Quad core / Multi core processor.
使用预编译头可能会减少编译时间。
Usage of precompiled headers might decrease your compile time.
如果它必须是一个产品,请查看 Xoreax IncrediBuild,它将构建分发到网络上的计算机。
除此之外:
(使用双四核,很容易受到磁盘瓶颈)
PIMPL 也有帮助。
If it has to be a product, look at Xoreax IncrediBuild, which distributes the build to machines on the network.
Other than that:
(use dual quad/core, and is easily bottlenecked by disk)
PIMPL helps, too.
您考虑过共享构建服务器吗? MSVC 将在终端服务器中运行,您可以将 CPU、RAM 和快速磁盘的成本分摊给开发团队。 附带的好处是,该终端服务器还可以容纳版本控制系统,因此结账速度很快。
Have you considered a shared build server? MSVC will run in a Terminal Server, and you can amortize the cost of CPUs, RAM and fast disks over the development team. As a side benefit, this Terminal Server can then also house the Version Control System, so checkouts are fast.