android 编译加快速度

本文介绍了一种通过利用多核CPU并行处理能力的方法来显著提高Android项目的编译速度。作者拥有配备i5第二代四核处理器及2GB DDR3内存的计算机配置,在使用make-j4命令进行编译时,将原本耗时1小时44分钟的编译过程缩短至52分钟,效率提升了一倍。文章强调了每次编译前执行make clean的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

make -jN,cpu有几个核N就填几

 

Test:

my computer configuration is i5+2G DDR3 , the 2nd i5 is 4 core cpu , so  I  can completed compile android by make -j4.

Before every compile , must make clean so as to be completed compiled.

When make -j4 , start time is 2011-10-30 13:44  , end time is 2011-10-30 14:36 , the whole time is 52 minutes.

But use method of make , the whole time is 1小时44分钟 ,  so the spare time is 52 , only half  .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值