有哪些改进构建/编译时间的方法? [英] What are ways of improving build/compile time?

查看:23
本文介绍了有哪些改进构建/编译时间的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio,似乎摆脱未使用的引用和 using 语句加快了我在大型项目上的构建时间.是否有其他已知的方法可以加快构建时间.其他语言和构建环境如何?

I am using Visual Studio, and it seems that getting rid of unused references and using statements speeds up my build time on larger projects. Are there other known ways of speeding up build time. What about for other languages and build environments?

构建/编译过程中的瓶颈通常是什么?磁盘、CPU、内存?

What is typically the bottleneck during build/compile? Disk, CPU, Memory?

分布式构建的良好参考列表是什么?

What is a list of/are good references for distributed builds?

推荐答案

我们为大型 C++ 项目所做的最大改进来自分发我们的构建.几年前,完整构建大约需要半小时,而现在大约需要三分钟,其中三分之一是链接时间.

The biggest improvement we made for our large C++ project was from distributing our builds. A couple of years ago, a full build would take about half an hour, while it's now about three minutes, of which one third is link time.

我们使用的是专有构建系统,但 IncrediBuild 对很多人来说都运行良好(我们无法让它可靠地运行).

We're using a proprietary build system, but IncrediBuild is working fine for a lot of people (we couldn't get it to work reliably).

这篇关于有哪些改进构建/编译时间的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆