~/talk

The Impact of the Swift Runtime on App Performance

TalkinRussianat Mobius 2024 Autumn · 2024-10-11..10-20· [swift]
links:none on file
slides:none on file

Explains the Swift Runtime function swift_conformsToProtocol: what it does, why it can be slow, and how to minimize its calls. Covers concrete slow cases (as?/as! casts, String(describing:), and type-generic-constraint generics), shows why String(describing:) is expensive and when to replace it, and presents techniques and examples (including a SnapKit fork) to avoid or optimize as?/as! and generic-constraint usage. Finishes with practical recommendations teams can apply to speed up iOS apps.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10About Swift Runtime
  3. 2:59Swift Runtime internals
  4. 3:42Conform to method problem
  5. 5:50Conformance in binary
  6. 8:41Method invocation
  7. 12:32Cast types and features
  8. 15:28Generics problem
  9. 18:21Optimization results
  10. 21:52SwiftUI optimization
  11. 24:30Generic casts
  12. 26:40Code recommendations
  13. 29:10DI and protocol casts
  14. 30:34Resources and conclusion
  15. 30:59Q&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.