• 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: Improve performance of data structure saved to disk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improve performance of data structure saved to disk


  • Subject: Re: Improve performance of data structure saved to disk
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 06 Aug 2015 03:42:54 +0000

On Aug 5, 2015, at 20:17 , Juanjo Conti <email@hidden> wrote:
>
> At the moment I'm using Keyed-Archiving, but after detecting performance
> issues and read I'm changing to Core-Data.

What quantity of entries/records are you talking about here? It’s not going to make a big difference to performance (as opposed to a smaller, custom solution that doesn’t involved archiving, if that is in fact the bottleneck) unless you have tens of thousands of records to store.

IMO, Core Data is a terribly painful technology that will make you very, very miserable, not to mention adding many months to your project.

As an alternative, if your use case is really a kind of database, you could try using something like sqlite or couchDB (whatever it’s called now, I’m sure Jens would be happy to fill you in). If it’s not, write a custom data file and be done with it.

I don’t know for sure, but my impression is that the things that are slow in archiving are:

— Following links in a non-hierarchical object graph.

— Uniquing values stored as objects, such as NSString and NSNumber.

_______________________________________________

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: Improve performance of data structure saved to disk
      • From: Jens Alfke <email@hidden>
References: 
 >Improve performance of data structure saved to disk (From: Juanjo Conti <email@hidden>)

  • Prev by Date: Re: Swift enums and NSNotificationCenter
  • Next by Date: Re: Swift enums and NSNotificationCenter
  • Previous by thread: Improve performance of data structure saved to disk
  • Next by thread: Re: Improve performance of data structure saved to disk
  • Index(es):
    • Date
    • Thread