Re: Improve performance of data structure saved to disk
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