• 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: Sixten Otto <email@hidden>
  • Date: Thu, 06 Aug 2015 12:33:14 -0700

On Thu, Aug 6, 2015 at 9:31 AM, Jens Alfke <email@hidden> wrote:

> As far as I know, there’s no good Cocoa solution for super-simple
> persistence — something like a persistent NSDictionary that can efficiently
> store any number of keys. This would be pretty easy to implement using a
> bare-bones key/value store like Berkeley DB, Tokyo Cabinet, LevelDB, LMDB,
> ForestDB, etc. (You can even use SQLite with a very simple key/value
> schema.)
>

It's not Apple-provided, but YapDatabase (
https://github.com/yapstudios/YapDatabase) is a key-value store implemented
on top of SQLite that's usable on iOS and OS X, and which I've seen
recommended a lot in this sort of conversation, and which should be much
easier to adopt that another cross-platform binary store. It also has lots
of extensions to support things like querying and change notifications.

For the record, I agree that it's probably overkill in this instance.

(Also, I'll note for the record that Tokyo/Kyoto Cabinet aren't going to be
usable in an App Store app without a commercial license.)

Sixten
_______________________________________________

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

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