Chapter 7
Optimize Memory Usage for Better Performance
In this chapter, you will learn the following:
- Review the old manual memory management policies
- Object ownership policy
- The new Automatic Memory Management bases on the old manual memory management.
- What object copying is and how to use it.
- How to use
autorelease
andrelease
methods properly. - A review of memory instruments.
iPhone is a constrained environment with a limited amount of memory. However, many developers either underestimate or overestimate that fact, so they don't take advantage of all the available memory in the iPhone to boost performance. Others are so scared of memory and performance in iPhone that they do lots of premature optimization, which harms the readability of ...
Get Pro iOS Apps Performance Optimization 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.