iphone中的应用程序堆大小是多少? [英] what is the application heap size in iphone?

查看:105
本文介绍了iphone中的应用程序堆大小是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ,,

iphone中的应用堆大小是多少?我的意思是应用程序可以在iphone中使用内存的大小。 ipod是否相同或iphone或ipod不一样?

What is the application heap size in iphone ? i mean that up to what size a application can use memory in the iphone. Does it same for the ipod or it is different for iphone or ipod?

我们可以使用NSdata在我们的应用程序中下载iphone中的下载内容大小是什么?

What is the downloaded content size in iphone which we can download in our app using NSdata?

谢谢

推荐答案

可用内存不固定。除了设备差异之外,还有正在运行的进程(系统进程)消耗不同数量的设备内存 - 并且由于没有虚拟内存,所有进程都从同一堆中进行绘制。

Available memory is not fixed. As well as device differences there are running processes (system processes) that consuming varying amounts of the device memory - and since there is no virtual memory all processes are drawing from the same heap.

至少包括3G在内的所有iPhone,以及至少达到目前型号的所有iPod触控(不确定那些)都有128Mb RAM。 3GS有256Mb。

All iPhones up to and including the 3G, and all iPod touches at least up to the current models (not sure about those) had 128Mb RAM. the 3GS has 256Mb.

对于128Mb设备,建议尝试保持低于约26Mb,尽管通常应该有大约60Mb可用(你可以使用34Mb) inbetween用于缓存瞬态资源)。

For 128Mb devices the recommendation is to try and keep below about 26Mb, although you should usually have up to about 60Mb available (you can use the 34Mb inbetween for caching transient resources).

有时可用RAM甚至可以低于26Mb,因此占用的空间越小越好。

Sometimes the available RAM can even dip below 26Mb, so the smaller your footprint the better.

这篇关于iphone中的应用程序堆大小是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆