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 and release 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.