Optimizing button.titleLabel <p>I am optimizing my app on iPhone 4, it's really fast on iPhone 5 but lagging a little on iPhone 4. Using instrument Time Profiler, I found that 30% of the time is spent on [UIButton titleLabel], it seems huge for a UIKit simple task I am calling several times button.titleLabel.font and [button.titleLabel setFont:font]; but I don't see why using pointers would take so long. How would you optimise this? My app is using autolayout.</p> <p><img src="https://i.stack.imgur.com/UB27Y.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/EoMcV.png" alt="enter image description here"></p> <p>edit: it seems most of the performance goes into calling UIButton.titleLabel which triggers autolayout constraint calculation</p>