~/talk

Let's get you started with asynchronous programming

Talkat PyData Global 2024 · 2024-12-03..12-05· [python]
links:none on file
slides:none on file

Claims that async is practical not mystical and shows working code using Python 3.12 (back to 3.7+), aiohttp and the standard asyncio.gather pattern with sessions and per‑host limits. Builds a content‑warning pipeline that fetches video and transcript, runs a CPU model via loop.run_in_executor, and patches results back. Initial naive async run drops 100‑video time from 3m26s synchronous to 1m22s then to 13s after adding semaphores, connection limits and offloading CPU work. IPython/Jupyter and FastAPI behavior details are shown.

AI-written summary · about

  1. 0:00Async programming intro
  2. 1:07What is async programming
  3. 3:11Asyncio in Python
  4. 7:45Coroutines and event loops
  5. 10:12Running async code
  6. 13:03Concurrent execution with gather
  7. 15:11Content warning service
  8. 20:56Fixing async mistakes
  9. 24:03Optimizing with semaphores
  10. 25:34CPU-bound tasks in async
  11. 27:22Q&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.