~/talk

Unlocking the Parallel Universe: Subinterpreters and Free-Threading in...

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
slides:none on file

Claims that Python 3.12 subinterpreters beat multiprocessing on small overhead and that Python 3.13’s optional free-threading can run threads truly parallel are demonstrated with concrete code: compiled CPython from source with disable-gil and experimental JIT, a hypercorn-based multi-worker multi-thread ASGI server, and microbenchmarks (pi: threads 0.04s for 200 digits, 2.3s for 2000; subinterpreters slightly slower at 200 but faster at 2000). Demo runs 8 subinterpreters in one process, hot reload works, but C-extension ABI and current disabled-optimization slowdowns remain practical blockers.

AI-written summary · about

  1. 0:00Introduction
  2. 2:13Nature of parallelism
  3. 4:18Python execution models
  4. 5:22Sub-interpreters explained
  5. 7:45Free-threading in 3.13
  6. 9:49Performance and compatibility
  7. 13:54Web application architecture
  8. 16:01Live demo and implementation
  9. 24:10Strategic considerations
  10. 27:13Conclusion and Q&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.