~/talk

Usability Meets Performance in Swift

Talkat ServerSide.swift 2025 · 2025-10-01..10-03· [swift]
slides:none on file

Explains how Swift 6.x closes the gap with C by combining three concrete features — span for non‑escapable, bounds‑checked buffers, inline array for in‑storage fixed‑width arrays, and the non‑copyable/unique types pattern (unique array in Swift Collections) — to eliminate refcounting and heap allocations in hot paths. Shows a pop‑n example, gives code patterns (closure-on-slice vs returning arrays), and demos runtime tooling: Instruments flame graphs, SwiftParker and the new Swift profile recorder with SpeedScope output. Watch if needing safe C‑level performance and in‑process production profiling.

AI-written summary · about

  1. 0:00Introduction to language trade-offs
  2. 4:58Swift’s performance and usability balance
  3. 11:38Optimizing pop operations in Swift
  4. 14:52Memory control for peak performance
  5. 18:47Span for safe pointer management
  6. 20:12Inline arrays for contiguous storage
  7. 21:13Non-copyable types for reference counting
  8. 23:19Profiling hot paths with Instruments
  9. 25:48In-process profiling for servers
  10. 27:12Swift server ecosystem updates
~/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.