~/talk

Swift at Scale: Where Performance Really Comes From

Talkat iOS Conf SG 2026 · 2026-01-21..01-23· [swift]
slides:none on file

GoodNotes profiles a hot aggregation path and finds a large Swift struct (58 fields) causing expensive non‑trivial copies; the compiler cannot safely change data layout. They implement a hot/cold split: keep a few hot fields inline and move rare, component‑specific fields into an array of existential updates with last‑write‑wins merging via a visitor. Result: struct size drops 6 KB → 300 B (18×) and end‑to‑end CPU in that path improves 42% faster, proving layout change — not micro‑tweaks — moves the needle.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:08Performance at scale overview
  3. 4:00Goodnotes and context
  4. 6:16Profiling the hot path
  5. 8:30Data structure analysis
  6. 14:06Swift cost model
  7. 19:17Compiler limitations
  8. 22:58Data layout redesign
  9. 28:42Results and takeaways
  10. 30:24Conclusion and Q&A
~/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.