Re: NSImage Memory Management: To Page Or Not To Page.
Re: NSImage Memory Management: To Page Or Not To Page.
- Subject: Re: NSImage Memory Management: To Page Or Not To Page.
- From: Scott Stevenson <email@hidden>
- Date: Sun, 15 Oct 2006 23:53:09 -0700
On Oct 15, 2006, at 1:16 PM, Andrew Farmer wrote:
If I need to create my own memory management for these NSImages, how
can I tell when I my app will begin paging, as to avoid it by
deallocating the NSImages?
Do your own memory management. Forcing the system to swap out parts of
your program's memory will make it force other programs out as well,
which will lead to a significant slowdown when those programs are
reactivated.
The data structures in the ImageIO framework can load image headers,
thumbnails, previews, and so on without loading the actual backing
images. In other words, you can treat the images as lightweight
references, potentially saving tons of memory and CPU time.
(For what it's worth, credit for me knowing this goes to Josh Anon).
- Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden