13. Efficient Drawing
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason—including blind stupidity.
William Allan Wulf
In Chapter 12, “Tuning for Speed,” we looked at how to diagnose Core Animation performance problems using Instruments. There are many potential performance pitfalls when building iOS apps, but in this chapter, we focus on issues relating specifically to drawing performance.
The term drawing is usually used in the context of Core Animation to mean software drawing (that is, drawing that is not GPU assisted). Software drawing in iOS is done primarily using the Core Graphics framework, and while sometimes necessary, it’s really slow compared ...