~/talk

Making Python Faster with Free Threading and Mypyc

Talkat PyCon US 2026 · 2026-05-13..05-19· [python]
links:none on file
slides:none on file

Shows concrete wins: Python 3.14 free threading and mypyc produce real speedups on real code — examples show ~5× single-thread mypyc, per-tool best-cases ~10×, and a combined microbenchmark hitting 82× faster; Monte Carlo scales to 16× with per-thread random RNG instances; binary unpacking becomes ~24× sequential and ~51× with threads when rewritten with mypyc’s low-level reads; a route finder uses vec i32 and an open‑address int map to reach ~28× with threading.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Performance matters in Python
  3. 3:58Free threading benefits and trade-offs
  4. 6:29MyPyC for speedups
  5. 9:34Free threading + MyPyC
  6. 10:16Monte Carlo pi example
  7. 15:13Binary log processing
  8. 20:24Route finder with data structures
  9. 25:38Common bottlenecks and solutions
  10. 26:19Resources and closing
  11. 26:41Q&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.