~/talk

Image performance

Talkat UIKonf 2014 · 2014-05-14..05-16· [web-performance]
slides:none on file

Decoding time dwarfs file-load time: a decoded image always uses decoded size = width × height × 4 bytes (a raw iPhone 5s photo can be ~30 MB decoded), so avoid many simultaneously decoded images. Bundled images via imageNamed caches decoded images; disk loads use NSCache for runtime caching. JPEG2000 decompresses very slowly; use JPEG for photos, PNG for small UI art, or generate thumbnails with CGImageSourceCreateThumbnailAtIndex to decode/scaled images off the main thread. PVRTC textures (e.g. a 4096² image reduced from ~64 MB to ~4 MB) remove decoding but require an OpenGL pipeline. Use hybrid (JPEG color + PNG mask) or raw BGRA caching only when necessary.

AI-written summary · about

  1. 0:00Introduction to image performance
  2. 1:16File size and format optimization
  3. 7:50Memory usage and decoding
  4. 8:57Image loading performance
  5. 14:28Optimizing drawing and decoding
  6. 20:00CPU versus GPU processing
  7. 23:23Caching strategies
  8. 24:23Advanced optimization techniques
  9. 29:51Conclusion and takeaways
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.