The Life of an Image on iOS
summary
Explains how images move from file to frame buffer, shows that decoding inflates tiny files into large RAM-backed image buffers (back-of-napkin: 4 bytes per pixel -> 13.4 MB decoded buffer for a small asset), and demonstrates downsampling with Image I/O to create thumbnails sized to the view. Uses a demo app (Spin Stack) that had a scrolling hitch, records memgraph and runs vmmap to prove a ~12 MB saving and eliminate the frame drops.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 2:00Preface
- 5:35Memory
- 8:43Why do we care
- 13:06Sample Code
- 16:03Memory Usage
- 17:43Downsampling
related talks
14mReducing Image Memory Consumption in 10 Minutes
19mOptimising image heavy applications
35mFixing Image Performance for The Worst iPhone
27mGotta Go Fast (A Performance and Instruments Talk)
32mImages 101
38mFrom Vectors to Pixels: mastering images
45mReducing App Size: Moving Images and Localization Strings to the Server
18mNeed for Speed: How XO Group Optimized their Image Loading Time on The Knot Mobile App
