Optimizing CPU Use

Fixing memory problems is helpful, but there are still plenty of times when the problem really is that our apps are asking the CPU to do too much in too little time. We wouldn’t be buying new iPhones every couple years if we weren’t grumpy about how slow our old ones had become.

But before we tell our users to do the same thing, can we be sure that we’re making the most efficient possible use of the hardware they have? Are there things we can do to make our code faster? Fortunately, Instruments can help us investigate these kinds of performance challenges too.

Building a Chroma-Key App

To figure out performance optimization, you’ll need some code that does a lot of heavy lifting. To do this, the sample code download has a ...

Get Xcode Treasures now with O’Reilly online learning.

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