iOS memory allocation - how much memory can be used in an application?
来源:互联网 发布:终极算法 mobi 百度云 编辑:程序博客网 时间:2024/05/21 19:39
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.
0 0
- iOS memory allocation - how much memory can be used in an application?
- How can a database be in-memory and durable at the same time?
- Memory Allocation in C++/C
- Thinking in C++ ---- Memory Allocation
- How much memory does malloc(0) allocate?
- JavaCard free memory detect (how much memory left)
- How Can XML be Used?
- Memory Allocation
- How to discover memory usage of my application in Android
- How to discover memory usage of my application in Android
- How to discover memory usage of my application in Android
- How to discover memory usage of my application in Android
- Virtual Memory Usage from Java under Linux, too much memory used
- Virtual Memory Usage from Java under Linux, too much memory used
- 怎么调整wince的 内存分配 How to Adjust Memory Allocation in Windows Mobile
- how to prevent ZFS from eating too much memory
- How much GPU memory do iPhones and iPads have?
- Memory Management in iOS
- 字符串匹配
- hadoop2.5.2 eclipse 插件编译
- IntelliJ IDEA 常用快捷键列表
- windows运行py多线程报错问题
- C++ 静态链表的实现
- iOS memory allocation - how much memory can be used in an application?
- 自学有感
- java hdu2088
- 获取客户端IP方案
- node.js开发指南(书籍)
- selector修改TextView中字体的颜色
- 函数的应用
- VB.NET窗体继承
- 黑马程序员--杨辉三角形问题