~/talk

"Python’s tale of concurrency"

Talkat PyCascades 2022 · 2022-02-05..02-06· [python, concurrency]
slides:none on file

A concrete comparison shows a comic-fetcher first running sequentially in ~1.84s, then sped up with OS threads for I/O, and finally moved to asyncio; a naive await-per-request version stays slow until each request is wrapped as asyncio.create_task and awaited together with asyncio.gather, after which concurrent fetches complete much faster. Uses an async HTTP client (httpx AsyncClient), notes uvloop as a faster event loop option and warns asyncio isn’t a universal silver bullet.

AI-written summary · about

  1. 0:00Start
  2. 0:21Python's Tale of Concurrency
  3. 1:29Introduction
  4. 4:16Concurrency Is Different from Parallelism
  5. 4:42How Python Handles Concurrency
  6. 7:51Execution Diagram
  7. 10:34Join the Threads
  8. 13:32Multitasking
  9. 17:21The Event Loop
  10. 18:13Pi Puppeteer
  11. 23:47Resources
~/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.