Re: What is using up so much memory here?
Re: What is using up so much memory here?
- Subject: Re: What is using up so much memory here?
- From: David Duncan <email@hidden>
- Date: Tue, 10 Mar 2009 17:00:34 -0700
On Mar 10, 2009, at 4:50 PM, James Cicenia wrote:
I am just overlaying colored state images over a map of the US.
I don't need performance here, just memory efficiency. I will try
imageWithContetsOfFile.
And just to be clear, imageWithContentsOfFile: vs imageNamed: won't
save you any memory per image, it only prevents the image from being
put into the image cache, which may help your performance in other ways.
Dave Camp's suggestions are probably a good starting point. Only load
images you need to display, and if they don't need to be as large as
they are, shrink them (when creating the content, not after loading
them).
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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