首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
iOS 开发实用技术导航
NSHipster 中文版
›
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
›
http://www.cocos2d-iphone.org/
CocoaPods
›
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
›
http://code.google.com/mobile/analytics/
WWDC
›
https://developer.apple.com/wwdc/
Design Guides and Resources
›
https://developer.apple.com/design/
Transcripts of WWDC sessions
›
http://asciiwwdc.com
Cocoa with Love
›
http://cocoawithlove.com/
Cocoa Dev Central
›
http://cocoadevcentral.com/
NSHipster
›
http://nshipster.com/
Style Guides
›
Google Objective-C Style Guide
›
NYTimes Objective-C Style Guide
Useful Tools and Services
›
Charles Web Debugging Proxy
›
Smore
广告
V2EX
›
iDev
大家怎么看iOS5的Automatic Reference Counting?
coupgar
·
coupgar
·
2011-10-18 09:34:05 +08:00
· 5224 次点击
这是一个创建于 4889 天前的主题,其中的信息可能已经有所发展或是发生改变。
我刚接触ios开发,自动内存管理感觉比以前方便多了,不知道效率是不是比手动管理好一点呢?
我刚
iOS
iOS5
5 条回复
•
1970-01-01 08:00:00 +08:00
1
laihj
2011-10-18 09:54:27 +08:00
理论上肯定不会比手动的好
2
keakon
2011-10-18 10:27:57 +08:00
@
laihj
事实是比手动快几倍
3
coupgar
OP
2011-10-18 10:56:32 +08:00
@
laihj
@
keakon
确实比手动快,而且不会发生内存泄漏的情况,具体可以参考这里
http://clang.llvm.org/docs/AutomaticReferenceCounting.html
http://stackoverflow.com/questions/6385212/how-does-the-new-automatic-reference-counting-mechanism-work
4
dongsheng
2011-10-18 11:08:58 +08:00
麻烦的是对大多数第三方库需要加禁用arc的编译flag,因为大多都因为兼容性还在使用手动内存管理。
5
coupgar
OP
2011-10-18 12:11:32 +08:00
@
dongsheng
相信随着时间的推移,ARC会慢慢普及的
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
5568 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 02:48
·
PVG 10:48
·
LAX 18:48
·
JFK 21:48
Developed with
CodeLauncher
♥ Do have faith in what you're doing.