• 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
NSUserDefaults allocation size and CALayer memory usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUserDefaults allocation size and CALayer memory usage


  • Subject: NSUserDefaults allocation size and CALayer memory usage
  • From: Henrik Granaas-Helmers <email@hidden>
  • Date: Mon, 29 Jun 2015 08:35:16 +0200

Hi there,

I am new to Apple development, and new to this list. I have two questions about memory on OS X.

1. NSUserDefaults seems to allocate 16 MB memory at load. I can't see myself using a megabyte—let alone 16 of those. It would be very interesting to know why it allocates so much, and if there is a way to encourage NSUserDefaults to grab less.

2. I create a couple of CoreAnimation layers that I think are large (5120x2880 px). I would expect that to occupy 450 MB (5120*2880*32/1024/1024) of memory. But instead it only takes up one fourth of that. What is this sorcery?


--
Henrik Granaas-Helmers
_______________________________________________

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


  • Follow-Ups:
    • Re: NSUserDefaults allocation size and CALayer memory usage
      • From: David Duncan <email@hidden>
    • Re: NSUserDefaults allocation size and CALayer memory usage
      • From: Jens Alfke <email@hidden>
    • Re: NSUserDefaults allocation size and CALayer memory usage
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Open program from custom schema link
  • Next by Date: Swift 2.0 difficulty
  • Previous by thread: Re: Open program from custom schema link
  • Next by thread: Re: NSUserDefaults allocation size and CALayer memory usage
  • Index(es):
    • Date
    • Thread