• 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: Cocoa-dev Digest, Vol 13, Issue 415
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-dev Digest, Vol 13, Issue 415


  • Subject: Re: Cocoa-dev Digest, Vol 13, Issue 415
  • From: Graham Cox <email@hidden>
  • Date: Fri, 30 Sep 2016 12:38:29 +1000

> On 30 Sep 2016, at 3:48 AM, Gabriel Zachmann <email@hidden> wrote:
>
> I was just a little bit hesitant to use the regular ScreenSaverDefaults for those really small pieces of data that change every time,
> because I already use the ScreenSaverDefaults to store quite a bit of other data (that changes only rarely) , in total 15 MB.
>
> That means the OS has to write all of that data back to disk just because I have changed an integer,
> doesn't it?


Don’t prematurely optimize.

Try it and see. How defaults are implemented is hidden - it may be a disk write or it may not, that’s a detail you don’t need to consider. If it turns out it’s really slow, and that is a problem, then worry about it. I suspect you won’t have to.

—Graham



_______________________________________________

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


References: 
 >Re: Cocoa-dev Digest, Vol 13, Issue 415 (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: iOS app communicating with macOS app
  • Next by Date: Re: Mystery Threads
  • Previous by thread: Re: Cocoa-dev Digest, Vol 13, Issue 415
  • Next by thread: Playground gets permission error
  • Index(es):
    • Date
    • Thread