iOS memory allocation - how much memory can be used in an application?
2015-11-27 19:28
441 查看
Blocks from separate memory allocations are not allocated contiguously (separate calls to alloc, malloc, new, etc.). Otherwise they are allocated contiguously(from the same call to malloc, ex. new float[30]). According to Apple your app risks being shut down
for memory usage when you use more than 20mb of ram. In practice however, you can get to about...
260 MB of ram on iPad 2 (Thanks RobCroll)
170-180MB of ram on devices with 512 Mb of ram total (iPhone 4, iPod touch 4g)
40-80MB of ram on devices that have 256 MB of ram (iPad, iPhone 3gs, iPod touch 3g)
25 MB on device with only 128MB of ram (IPhone 3g, iPhone 2g, iPod touch 1g-2g)
If you really "need" that much ram for a mobile application, you should really save the data to a temp file and do your processing on that. An easy way to do that is by using memory mapped files.
for memory usage when you use more than 20mb of ram. In practice however, you can get to about...
260 MB of ram on iPad 2 (Thanks RobCroll)
170-180MB of ram on devices with 512 Mb of ram total (iPhone 4, iPod touch 4g)
40-80MB of ram on devices that have 256 MB of ram (iPad, iPhone 3gs, iPod touch 3g)
25 MB on device with only 128MB of ram (IPhone 3g, iPhone 2g, iPod touch 1g-2g)
If you really "need" that much ram for a mobile application, you should really save the data to a temp file and do your processing on that. An easy way to do that is by using memory mapped files.
相关文章推荐
- Android:Drawable资源详解
- Android权限之android:sharedUserId和签名
- AutoMapper中的Map和DynamicMap——高手注重细节,思考和总结
- iOS单个页面关闭边缘返回
- Objective-C 数组、可变数组
- JavaEE_Mybatis_SpringMVC_Mybatis_lesson3_ Mapper代理的开发方式
- iOS 保持界面流畅的技巧
- IOS_Swift_深入理解闭包 对比懒加载和普通赋值的区别
- android开发中,通过adb抓取log信息
- Android中system.img的两种格式及其相互转换方法
- log4net系列(三)--详解RollingFileAppender
- Unity3d各平台资源路径文件夹
- android加载多图 LruCache与硬盘缓存融为一体
- 解决 IOS9.0 调用qq2.91SDK登录 只显示web页面而不能调用客户端登录的问题
- android gifj加载
- iOS中使用ZBar扫描二维码自定义扫描界面
- iOS Crash文件的解析(转)
- Android Fragment切换动画
- android项目自定义组合控件添加属性
- Objective-C新特性