Book Image

Objective C Memory Management Essentials

Book Image

Objective C Memory Management Essentials

Overview of this book

Table of Contents (18 chapters)
Objective-C Memory Management Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Don't overthink about memory management


Memory management is not something that is overly complex or difficult to wrap your head around. So, in order to further aid you with memory management, here are a few handy tips:

  • You can try to make your resource files such as audio, images, and property lists as small as possible. To reduce the space occupied by property list files, you can use the NSPropertyListSerialization class while the free, open source command-line tool called Pngcrush can be used to compress PNG files as you can have savings of 20 percent or more depending on your PNG files.

  • Core Data is more than just a persistent storage framework. Core Data provides a memory efficient way of managing large data sets, and if you manipulate large structured data, using the Core Data persistent store or SQLite database as a data store as opposed to NSData or NSUserDefault will ensure that you can have efficient memory usage provided by Apple's own Core Data framework.

  • Resources should always...