~/talk

Reducing Image Memory Consumption in 10 Minutes

Talkat AltConf 2019 · 2019-06-03..06-06· [web-performance, ios]
slides:none on file

Shows how to replace full decoded image buffers with smaller decoded thumbnails using Image I/O thumbnail creation and downsampling, turning a 266 KB JPEG into a 17×80 image buffer that costs ~13.4 MB in RAM and cutting app resident memory from ~69.5 MB to ~56.3 MB (about 13.2 MB saved) per image. Uses UIImage/UIImageView pipeline, CGImageSourceCreateThumbnailAtIndex options, and recommends serial background decoding to avoid thread explosion.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Outline
  3. 1:15Example
  4. 1:43iPhone App
  5. 2:26Buffers
  6. 3:08Image Buffer
  7. 3:31Frame Buffer
  8. 3:58Frame Buffer Changes
  9. 4:49A Holistic View
  10. 5:04Decoding
  11. 6:45Image Dimensions
  12. 7:48How to Get a Smaller Image Buffer
  13. 8:00Image IO
  14. 8:31Rendering Pipeline
  15. 8:45Code
  16. 10:27Sample App
  17. 10:54When to use
  18. 11:29Further resources
  19. 11:42Twitter
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.