Xgrid如何与Xcode一起使用以进行并行编译? [英] How well does Xgrid work with Xcode for parallel compiling?

查看:475
本文介绍了Xgrid如何与Xcode一起使用以进行并行编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很感兴趣的使用Xgrid加速我的Xcode编译跨多个机器的想法...但是似乎很难找到任何有关人们的经验,任何陷阱等信息。我没有多个Mac,我可以测试它,现在,所以我很好奇。

I'm intrigued by the idea of using Xgrid to speed up my Xcode compiling across multiple machines... but it seems very difficult to find any information on people's experiences with it, any gotchas, etc. I don't have multiple Macs that I can test it with right now, so I'm curious.

你试过吗?它对你有多好?你看到了什么样的加速?

Have you tried it? How well has it worked for you? What kind of speedups have you seen?

推荐答案

我使用了一段时间,但通常没有得到很好的结果中型项目(在4核Mac Pro上构建的时间不到5分钟的事情)。最值得注意的是,当我设置Bonjour发现可用的机器时,当前机器(即我从构建中启动的机器)没有被包括作为可用的构建机器之一。由于我通常坐在一个4核的Mac Pro,并试图利用较小的盒子(Macbook Pro,Mac Mini,这样的事情),它大大减慢了我的构建时间,因为最大的盒子没有帮助。解决方案是手动添加所有的机器,但是,如果任何机器不在线(这是我的共同),我遇到了一些减速。

I used it for a while, but generally didn't get very good results for moderate sized projects (things that take less than 5 minutes to build on a 4-core Mac Pro). The most noteworthy gotcha is that when I set up Bonjour discovery of available machines, the current machine (i.e. the one I'm kicking off the build from), didn't get included as one of the available build machines. Since I generally sit at a 4-core Mac Pro and was trying to leverage smaller boxes (Macbook Pro, Mac Mini, that sort of thing), it dramatically slowed my build time because the biggest box wasn't helping. The solution was to manually add all the machines, but then I ran into some slow downs if any of the machines weren't online (which was common for me).

最令人沮丧的是,iPhone项目不能编译在Xgrid在所有当我上次检查(没有签入3.0 SDK时间框架,所以这可能已经改变)。更糟的是,请求分布式编译实际上导致错误,而不是只被忽略。所以我不得不在Mac和iPhone之间切换配置来回切换。我这样做了很多,所以这变得很头痛。

Most frustrating was that iPhone projects couldn't be compiled in on Xgrid at all when I last checked (haven't checked in the 3.0 SDK time frame, so this may have changed). Worse, requesting distributed compilation actually caused errors, rather than just being ignored. So I had to switch my configuration back and forth when switching between Mac and iPhone. I do this a lot, so this became a serious headache.

到头来,这比麻烦更多,特别是因为我的主机比所有其他机器都大得多,并且我的大多数项目的总体构建时间在Mac Pro上很小。如果我的主机是一台笔记本电脑,我可能会感觉不一样。

In the end it was much more trouble than it was worth for me, particularly because my primary machine is so much bigger than all the other machines, and the overall build time for most of my projects is small on a Mac Pro. I might feel different if my primary machine were a laptop.

这篇关于Xgrid如何与Xcode一起使用以进行并行编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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