~/talk

SWIFT ABI Essentials: How to Maximize Your App's Efficiency

Talkat Swift Heroes 2023 · 2023-05-04..05-05· [swift]
links:none on file
slides:none on file

Explains Swift ABI components with concrete evidence: inspects Swift compiler source and emits SIL analysis test cases (dozen+ small programs) and shares code on GitHub. Demonstrates that generic specialization yields measured speedups — about 1.5× for classes, ~10× (sometimes 11–12×) for structs — and that protocol-extension dispatch can outperform protocol-interface dispatch by over 100×; also shows the cost of Objective‑C exposure and how final/dynamic/objc modifiers change dispatch and inlining via the LLVM backend.

AI-written summary · about

  1. 0:00Intro
  2. 1:25Agenda
  3. 1:44Swift compiler
  4. 4:12Swift ABI (Application Binary Interface)
  5. 6:34How to get ABI details
  6. 7:29Data Layout
  7. 9:08Existential containers
  8. 10:54Storing opaque types
  9. 12:14Type metadata
  10. 15:07Method dispatch STATIC
  11. 18:59Method dispatch DYNAMIC
  12. 22:44Protocol’s extensions method dispatch
  13. 24:14Message dispatch
  14. 26:35Dispatch behaviour specifiers
  15. 29:01Live examples
  16. 35:54Contact
~/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.