請問XCODE下使用Distribute build為何速度反而慢?

Mac OS X 平台上程式設計的相關問題討論

版主: bryanchangdigdog謝孟叡

回覆文章
內容
發表人
頭像
rlong
嗜冰客
文章: 1530
註冊時間: 04/30/2001 1:01 am
來自: 新竹
聯繫:

請問XCODE下使用Distribute build為何速度反而慢?

#1 文章 rlong »

請高手指導一下

一個Project在Dual G5 2GHz 2GRAM上,build一次須 9秒
若打開Distribute build, 透過100BaseT網路,加上外部一台電腦 PB 12" G4 1GHz 768MB RAM 結果build 一次費時39秒

請問除了G5的Xcode Preference->Distribute build check box "Distribute builds to shared computer"
以及PB G4 上check box "Share my computer for building as High priority"
之外還須如何設定?

謝謝!
I love OPERA !
頭像
janusng
嗜冰客
文章: 1048
註冊時間: 04/30/2001 1:01 am
來自: Metropolis Asylum
聯繫:

#2 文章 janusng »

只要你的 program 再大上千倍、萬倍或千萬倍,便行了。 :badgrin:
圖檔
It is not god who created man. It is man who created God.

Light travels faster than sound. This is why some people appear bright until you hear them speak.
頭像
bryanchang
討論區管理員
文章: 7057
註冊時間: 04/19/2001 1:01 am
來自: The '60s
聯繫:

Re: 請問XCODE下使用Distribute build為何速度反而慢?

#3 文章 bryanchang »

rlong 寫:請高手指導一下

一個Project在Dual G5 2GHz 2GRAM上,build一次須 9秒
若打開Distribute build, 透過100BaseT網路,加上外部一台電腦 PB 12" G4 1GHz 768MB RAM 結果build 一次費時39秒

請問除了G5的Xcode Preference->Distribute build check box "Distribute builds to shared computer"
以及PB G4 上check box "Share my computer for building as High priority"
之外還須如何設定?

謝謝!
Distribute build 不是萬靈丹,Xcode 需要先把你整個 project 透過網路傳到別的電腦上後,才可以開始 compile, 所以你的 project 除非很大,否則編譯的速度反而會更慢。
圖檔
回覆文章