~/talk

Thinking Outside the GIL with AsyncIO and Multiprocessing

Talkat PyCon 2018 · on Friday, 2018-05-11· [python]
slides:none on file

Combines AsyncIO and multiprocessing to sidestep the GIL by running an event loop inside child processes, using multiprocessing queues, batching and optional spawned start to cut copy‑on‑write memory. Benchmarks show naive multi+async ≈3.5×, tuned chunking ≈5–5.5× and a 8x speed-up when reframed as MapReduce-style aggregation, with a dramatic memory drop; implementation handles hundreds if not thousands of concurrent IO requests, is open sourced under MIT and proves the approach works in production.

AI-written summary · about

  1. 0:00Start
  2. 0:50What's the GIL?
  3. 1:24Stateful monitoring
  4. 3:22#impact
  5. 4:33Not aging well
  6. 5:20Switch to py3
  7. 6:23Sharding
  8. 10:44Multiprocessing + Asynclo
  9. 15:41Optimizations
  10. 17:09Considerations
  11. 18:45Performance comparison
  12. 21:07aiomultiprocess
~/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.