~/talk

SwiftUI Performance Tips

Talkat iOS Conf SG 2023 · 2023-01-12..01-13· [swift, web-performance]
slides:none on file

Concrete causes and fixes: expensive work in computed properties doing heavy work causes repeated main‑thread slowdowns; Core Data access belongs on background threads and map to lightweight structs; cache authors and batch UI updates with objectWillChange timers to avoid churn; avoid AnyView for lists and prefer generics or a view factory; use lazy stacks correctly and resize large images on a background thread or serve thumbnails from a CDN. Measure with Instruments (Time Profiler, Animation Hitches, SwiftUI profile) and gate regressions with signpost metrics in CI.

AI-written summary · about

  1. 0:00Intro
  2. 2:37iOS performance metrics
  3. 4:26Computed variables
  4. 6:04Database access
  5. 7:45Frequent redraws
  6. 10:30Unnecessary data updates
  7. 13:08AnyView vs Generics
  8. 17:00Offscreen rendering
  9. 19:15Using Instruments
  10. 22:26Performance Testing
~/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.