~/talk

Working Around the GIL with asyncio

Talkat PyCon US 2023 · 2023-04-19..04-27· [python, web-performance]
slides:none on file

Concrete claim: using asyncio plus OS shared memory avoids pickle serialization overhead and yields a ~25× speedup on a 45 GB synthetic dataset (about 2 billion records), cuts peak RAM roughly fivefold, and reduces per-worker startup latency from many seconds to milliseconds. Implementation uses Python 3.11, multiprocessing.shared_memory with numpy memoryviews, a ProcessPoolExecutor orchestrated by asyncio task groups, and task/exception groups to catch parallel failures; the prototype works on macOS and WSL.

AI-written summary · about

  1. 0:00Start
  2. 3:33MAP / REDUCE
  3. 31:0125X IMPROVEMENT
  4. 33:16no serialization overhead -true parallel access to shared data
~/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.