~/talk

Writing robust, readable, and maintainable concurrent programs in Python

Talkat PyCon APAC 2018 · 2018-05-31..06-02· [python]
links:none on file
slides:none on file

Compares Python concurrency models with code and timings: threading suffers from the global interpreter lock so CPU-bound threads are slower and produce incorrect layer ordering; multiprocessing spawns separate interpreters and using a process pool executor cuts an 80s sequential workload to ~21s for four workers; combining per-process async fan-out/fan-in (threads for I/O) shaves another ~5s to ~16s; recommends no shared state, idempotent updates, concurrent.futures for returns, and producer‑consumer queues for pipelining.

AI-written summary · about

  1. 0:00Intro
  2. 2:42Making of kue lapis sagu
  3. 6:02Multithreading
  4. 10:40Multiprocessing
  5. 12:44Solution 1: Use lock?
  6. 14:00Solution 2: Always design for concurrency
  7. 18:34Idempotent state
  8. 21:04Restaurant queue
  9. 23:09Embarrassingly Parallel
  10. 26:54Producer Consumer Queue
  11. 29:30Summary
~/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.