Pick the fix
Time Profiler shows image decoding and DateFormatter creation inside cellForRow while scrolling. Fix?
Hint 1 of 1
What runs per cell on the main thread?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Decode and downsample images off the main thread, cache them, and reuse a formatter or precompute date strings
Correct. Both main-thread costs leave the scroll path.
Why not the others?
- B Call reloadData less often. It doesn't change per-cell cost.
- C Add more cells to the reuse pool. Reuse isn't the bottleneck.
- D Use a bigger estimated row height. Sizing doesn't fix decoding and formatter costs.