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: James Cicenia <email@hidden>
- Date: Tue, 10 Mar 2009 18:50:03 -0500
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.
Thanks
James
On Mar 10, 2009, at 6:45 PM, David Duncan wrote:
On Mar 10, 2009, at 4:41 PM, James Cicenia wrote:
Interesting... I didn't know that, but then it begs the
question.... what do the cool kids do?
Should I be taking a different approach here? If so, any pointers
or doc chapter would be
great.
All depends on what you are trying to accomplish. Typically you
avoid loading anything you don't need and release anything when your
done with it. And you may want to switch to imageWithContentsOfFile:
until you can prove that the caching behavior of imageNamed: is
providing you with a performance improvement.
--
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