5 Performance Improvements for Core Data in iOS Apps
Reach for quality!
My favourite way of persisting data is with Core Data.
It’s an integrated Apple Framework — so don’t worry about your third-party stuff here. I like to write a Core Data Manager that is testable and can even be mocked.
However, where are the performance improvements that can make your App, well, usable?
They’re right below!
Difficulty: Beginner | Easy | Normal | Challenging
Terminology
Core Data: A framework that allows you to manage the model layer objects in your application. Core Data does this by being an object graph management and persistence framework.
Prerequisites:
- You will be expected to be aware how to make a Single View Application in Swift
- You’ll need to know about the basics of Core Data
- This article uses my method of having a Core Data Manager
- Knowing something about concurrency and threading would be useful
Stop using the viewContext!
That sounds a little bit strong. However, in my example Core Data Manager I have hard-baked the viewContext
. Now…