~/talk

High Performance Systems in Swift

Talkat Hacking with Swift Live 2019 · 2019-07-08..07-09· [swift]
slides:none on file

A Swift server that organizes lunches exhibits quadratic slowdowns because an unnecessary copy-on-write occurs per request, allocating a lot of memory (instruments shows ~2.3 GB from many contiguous array storage allocations, ~8,000 copies). Using Instruments allocations to inspect call stacks finds the COW path; fixes include removing the transient dictionary copy, generalized accessors (or tombstoning) and then the operation runs linear and fast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30Value Types
  3. 4:40Integers and Arrays
  4. 8:45Cows
  5. 11:25Live Demo
  6. 17:30Analysis
  7. 19:40The Problem
~/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.