Live data from Hacker News

Making News Feed nearly 50% faster on iOS

code.facebook.com

11–20 of 35 posts

Re: Making News Feed nearly 50% faster on iOS

#12
post #2

I really hope Apple will come up with a modern alternative to Core Data; it's neat and all, but it just doesn't feel like it's a good match for most situations. In my own anecdote, we had to show a list of autocompletion items - simple enough. Read XML, write a few hundred entries to a Core Data storage - and this list was relatively static, updated only once a week. A week after release, we got crash reports - the X…

CoreData is really meant for storing the entries that back your table view. Trying to use it as a universal data model seems unintended.

Re: Making News Feed nearly 50% faster on iOS

#15
post #12
post #2

I really hope Apple will come up with a modern alternative to Core Data; it's neat and all, but it just doesn't feel like it's a good match for most situations. In my own anecdote, we had to show a list of autocompletion items - simple enough. Read XML, write a few hundred entries to a Core Data storage - and this list was relatively static, updated only once a week. A week after release, we got crash reports - the X…

CoreData is really meant for storing the entries that back your table view. Trying to use it as a universal data model seems unintended.

You might be right that it's best for that, but CoreData pre-dates table views by many years and has always been sold by Apple as a general store for object graphs.

Re: Making News Feed nearly 50% faster on iOS

#18
post #2

I really hope Apple will come up with a modern alternative to Core Data; it's neat and all, but it just doesn't feel like it's a good match for most situations. In my own anecdote, we had to show a list of autocompletion items - simple enough. Read XML, write a few hundred entries to a Core Data storage - and this list was relatively static, updated only once a week. A week after release, we got crash reports - the X…

Core Data lives in an unfortunate in between world. It's way too complicated for small amounts of data, and it's too slow for large amounts of data. It's useful if you have medium amounts of data, such that you can't reasonably keep everything in memory and rewrite everything to disk for serialization but don't have so much that you start to hit performance problems, but how often are you in a situation like that where you know your data won't grow larger?

Re: Making News Feed nearly 50% faster on iOS

#20
post #15
post #12

Earlier quoted context omitted.

CoreData is really meant for storing the entries that back your table view. Trying to use it as a universal data model seems unintended.

You might be right that it's best for that, but CoreData pre-dates table views by many years and has always been sold by Apple as a general store for object graphs.

Pre-dates table views? NSTableView dates to the 1990s. Core Data was introduced in 2005.
Post reply on HN