Daily iOS
Performance and debugging

Where to start on scroll stutter

On a phone screen the interviewer asks: "A user reports that scrolling stutters. Where would you start?" Walk through the diagnostic order and what you look at in each step.

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Reproduce it first by narrowing the conditions (device, OS, screen, data volume), then find the regions where the main thread goes past 16ms (8ms at 120Hz) with Instruments Animation Hitches and Time Profiler. The usual causes are image decoding during cell setup, synchronous I/O, layout recalculation, and offscreen rendering.

Share a question