4 ms·
It’d be interesting to see a performance comparison of SwiftData vs. (objc?) CoreData vs. plain XML for large datasets. I recall plain XMLs being faster than Co
by trinix912 3y ago
It’d be interesting to see a performance comparison of SwiftData vs. (objc?) CoreData vs. plain XML for large datasets. I recall plain XMLs being faster than CoreData a few years ago in certain scenarios.
- akmarinov 3y agoIsn't SwiftData mostly a wrapper around CoreData?
- koinedad 3y agoMost definitely
- akmarinov 3y agoThen there probably won't be a difference in performance
- favorited 3y agoThere certainly could be. SwiftData @Models aren't subclasses of NSManagedObject, and don't have to use the Objective-C runtime for dispatch, or the KVC-style property accessors that Core Data uses. The fact that it is built atop Core Data's persistent stores, cloud sync, etc. doesn't mean that it's a fascade in front of the Objective-C APIs.
- afinlayson 3y agoIt just makes it easier to use - meaning less glue code. Making CoreData Swift + SwiftUI native approach. Where currently you'd have to make a Core Data class wrapped by a @Observable Class.
- koinedad 3y ago“Combining Core Data’s proven persistence technology and Swift’s modern concurrency features, SwiftData enables you to add persistence to your app quickly”
- ardit33 3y agoIt is a good addition. CoreData, is ok, but is not really used from serous apps. At least, none of the large ones that I have worked on. Either use flat files (serialized json) to save and restore state, or just Sqlite directly.
- jakey_bakey 3y agoSuper interested to understand more of this - I've worked on lots of serious apps, but not more than the scale of "banking app with ~1m users and 6 iOS devs"
- ProtocolF1 3y agoAnd do you mind telling what did those apps use? CoreData, SQLite, json files. Also do "serious" apps use Firebase anymore?
- xains 3y agothey also have their own version of firebase. firebase is the open source version of what google uses inside. sometimes big tech open sources parts of their technology (if its coded nice to dissect).
- xains 3y agothink about apps that have billions of users, they build their own wrappers around sqlite.
- xains 3y agohttps://engineering.fb.com/2023/02/06/ios/facebook-ios-app-architecture/ https://engineering.fb.com/2023/02/06/ios/facebook-ios-app-a...