• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage Memory Management: To Page Or Not To Page.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSImage Memory Management: To Page Or Not To Page. (From: "Jordan Evans" <email@hidden>)
 >Re: NSImage Memory Management: To Page Or Not To Page. (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Sending ASCII Messages to a TCP Socket
  • Next by Date: Re: Re: Error with [pluginBundle infoDictionary]
  • Previous by thread: Re: NSImage Memory Management: To Page Or Not To Page.
  • Next by thread: NSImage drawAtPoint & Transparency
  • Index(es):
    • Date
    • Thread