~/talk

Why Your Async Code Might Be Slower and How to Fix It

Talkat PyBay 2025 · on Saturday, 2025-10-18· [python]
name:Aastha
links:none on file
slides:none on file

Async can be slower when awaits run sequentially, synchronous libraries block the event loop, CPU work freezes everything, or hundreds of tiny coroutines add overhead. Examples: sequential fetches take 2s vs concurrent gather 1s; requests blocks but switching to aiohttp or aiofiles halves latency; offload CPU work with run_in_executor to threads or processes; prefer TaskGroup (Python 3.11) or create_task for per-task error handling; use semaphores, asyncio debug and linters like flake kit async.

AI-written summary · about

  1. 0:00Introduction
  2. 0:18Asyncio core concepts
  3. 4:45Sequential vs parallel
  4. 5:32Asyncio common mistakes
  5. 9:22Non-critical task blocking
  6. 10:20Debugging and concurrency
  7. 16:54Key takeaways
  8. 19:03Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.