Visual C 中的分布式构建工具?
我们正在开发相当大的中间件软件,每次需要在 VS2008 中重新构建整个解决方案(在单机上四核并行构建)时需要 10-20 分钟。我听说有相当昂贵的 VS 扩展,例如 Incredibuild,它们利用网络中的其他计算机(我们大约有 10 台计算机)。您曾经使用过或听说过这些工具吗?他们是否使构建过程变得更快、更智能,物有所值? (例如,重复使用可以缓存在不同机器上的目标文件)
提前致谢
We're working on pretty large middleware software, and it takes 10-20 minutes each time we need to re-build the whole solution in VS2008 (quad-core parallel build on a single machine). I've heard there are rather expensive VS extensions like Incredibuild that make use of other machines in your network (we have about 10 machines). Have you ever used or heard about those tools? Do they make the build process so faster and smarter to be worth the money? (e.g. re-use object files that could be cached on different machines)
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们也遇到了类似的问题,只不过在我们的例子中,构建花费了 40 多分钟。
在 Visual Studio 2008 中,我们使用了 Xoreax Incredibuild(请参阅 Xoreax 网站),它极大地缩短了构建时间(即一半或更好)。所以我想说是的,这样的工具可以提供帮助。而且,在我看来,它并没有那么贵(即每个座位 250 至 500 美元之间,具体取决于额外的选项,并且批量购买有一些折扣)。
现在我们处于 VS 2010,升级时 Incredibuild 不支持 2010,因此我们依赖 VS2010 构建。所有开发人员都有四核,VS 2010 中的构建充分利用了四核,因此构建时间是可以接受的。我们还审查和改进了我们的包含并更好地利用预编译头等。
因此,您可以尝试 Xoreax Incredibuild(他们有一个功能齐全的 30 天试用版,到期后可以延长),以确定价格/效益比是否适合您的情况,或者修改和改进您的包含和/或如果您有多核机器,请升级到VS2010。
Well we had similar problems except that in our case it took over 40 minutes to build.
With Visual Studio 2008 we used Xoreax Incredibuild ( see Xoreax web site ) and it dramatically reduced the build time (i.e. to half the time or better). So I would say yes, such a tool can help. And, in my opinion it is not so expensive (i.e. between 250 and 500 USD per seat depending on extra options and there are some discounts for volume purchases).
Now we are at VS 2010 and at the time we upgraded there was no support for 2010 in Incredibuild so we rely on the VS2010 build. All developers have quad cores and the build in VS 2010 makes good use of that so the build times are acceptable. We also reviewed and improved our includes and made better use of precompiled headers and so on.
So you coud try Xoreax Incredibuild (they have a fully functional 30 days trial version that can be extended when it expires) to be able to determine if the price / benefit ratio is ok for your case, or revise and improve your includes and/or upgrade to VS2010 if you have multi core machines.
同意之前的回答。我们有相似的经历;构建时间确实显着缩短。我们首先进行简单的 Incredibuild 设置;使用其他机器上的闲置容量。好处很明显,但我们认识到,通过添加专用构建服务器,我们可以获得更快的构建(不过,我们确实有更多的开发人员 - 超过 100 个客户端 - 所以 YMMV)
至于成本,Incredibuild 很可能会增加您的开发人员生产力至少提高 1%。
Agree with previous answer. We had similar experiences; build times do go down quite significantly. We first went with the simple Incredibuild setup; using spare capacity on other machines. The benefits were clear, but we recognized we could get even quicker builds by adding a dedicated build server (we do have far more developers, though - more than 100 clients - so YMMV)
As for the costs, it's quite likely that Incredibuild will increase your developer productivity by at least 1%.
Microsoft 现在有 BuildXL,但您必须为其单独构建项目文件。
FastBuild 是另一种选择,但同样是单独的项目格式。 msfastbuild 可以使用 FastBuild 构建 Visual Studio 项目,但是...您必须针对您的构建链进行调整。
仍在努力让其中一个运行......
Microsoft now has BuildXL, but you have to separately build the project file for it.
FastBuild is another option, but again, separate project format. msfastbuild can build Visual Studio projects with FastBuild, but... you have to adjust it for your build-chain.
Still at trying to get one of them running...