11. Background Processing
Everything must be made as simple as possible, but not simpler.
Albert Einstein
Chapter 10, “Performance,” gave recommendations on how to configure a managed object model for optimal performance. Measuring performance with Instruments was also demonstrated. Full-size photos were removed from the Prepare and Shop table view cells, and yet there are no thumbnails in their place. The process to create thumbnails from photos is intensive, so it cannot be performed in the foreground. Thumbnail creation aside, even the simple act of saving a context has the potential to impact the user interface if there are many changes to commit. This chapter uses the example of thumbnail generation to demonstrate how to perform an intensive ...
Get Learning Core Data for iOS with Swift: A Hands-On Guide to Building Core Data Applications, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.