Re: iPhone resource cache - memory question
Re: iPhone resource cache - memory question
- Subject: Re: iPhone resource cache - memory question
- From: Michael Ash <email@hidden>
- Date: Thu, 6 May 2010 16:40:00 -0400
On Thu, May 6, 2010 at 2:12 PM, Jens Alfke <email@hidden> wrote:
> An intermediate level would be if the library loads the _compressed_ audio.
> This is a lot less memory usage. It may even memory-map the file, which
> wouldn't affect your process's heap space at all. (I know the iPhone doesn't
> have VM, but I'm pretty sure it at least supports memory-mapping because
> that's pretty critical for loading code.)
Just a minor terminology nitpick (I'm about ready to give this one up,
but not quite yet): "virtual memory" refers to a a disconnect between
logical and physical memory addresses, usually accomplished through
dedicated mapping hardware. VM is a prerequisite for things like
giving different processes separate address spaces, and also for doing
things like memory mapped files.
The iPhone definitely has VM. What it doesn't have is swap, which is
what you get when you leverage VM to transparently shuffle memory
contents between RAM and slower, cheaper storage.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden