"You should use Core Data" by @atcrawford
<<< Great posthttp://pocket.co/sjIZL
@drewmccormack Article says that you should use Core Data because Apple uses it for apps, and Apple knows best. But where are said apps?
-
-
@mjtsai@drewmccormack a generalised framework can never be as fast as specialised because the general case cannot make certain assumptions. -
-
@drewmccormack@mjtsai agreed about time / resources required. It's very much a question of deciding whether the pros outweigh the cons. -
-
@drewmccormack It’s possibly convenient, but not high perf, to bring all objects into RAM before operating on them. - View other replies
-
@mjtsai It's always much faster operating on in-memory objects than on disk objects. In many cases it's a big perf win. - View other replies
-
@drewmccormack And an SQLite index on disk can be way faster than Core Data’s in-memory predicate filtering. - Show more
-
-
-
@mjtsai Quick scan shows Calendar, Contacts, Notes, iBooks. More important, 3rd party apps Pixelmator, Tokens, Transmit, Yojimbo. -
@drewmccormack Notes and iBooks don’t use it for syncing, either. Nor for storing large amounts of data. No iWork or iLife apps (AFAIK). -
@mjtsai Won't argue with you on iCloud sync: it's rubbish. iWork etc are pretty old. Think it is all still XML. - View other replies
-
@drewmccormack You think that, absent the history, Core Data would make a better word processing/spreadsheet document format than XML? - View other replies
-
@mjtsai Probably. Don't know what they do on iOS. I guess they split the XML into multiple files for partial loading. Ie, primitive DB. - View other replies
-
@drewmccormack@mjtsai FYI, the text of Moby Dick is 1.2MB uncompressed, so that's 10 Moby Dick's for 1 full screen retina iPad image. -
@mpweiher Text is small, structure much bigger. Doubt a big keynote XML could load into memory on iOS. Images are easy. Mostly stay on disk. -
@drewmccormack Just tried 25 page Keynote doc on desktop, structure in-memory << 11MB -> 50 page << 22MB. Even on iPad 1 only 10% of mem. - Show more
-
-
-
@mjtsai@drewmccormack I think it's quite simple - any non trivial app can exploit its unique requirements to provide better performance. - View other replies
-
@milend@drewmccormack Exactly. Core Data is not bad, but it can paint you into a corner. The article way oversells it.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Drew McCormack
Marcel Weiher
Michael Tsai
Milen Dzhumerov