~/talk

The GIL is dead: PyPy-STM

Talkat EuroPython 2015 · 2015-07-20..07-26· [python]
links:none on file
slides:none on file

PyPy-STM removes the GIL so Python code can run threads on multiple cores: Richards benchmark drops from 8.01s to 2.5s (2/4 core laptop) and a pure‑Python 3D renderer roughly doubles throughput when parallelized. The implementation instruments reads/writes, detects conflicts and now provides reports about the "STM conflicts" so large codebases can be incrementally fixed. Practical caveats: transactions that do I/O cannot be rolled back, short sections that mix CPU and I/O hurt performance, and single‑threaded runs are 25–40% slower.

AI-written summary · about

  1. 0:00Intro
  2. 1:26What is PyPySTM
  3. 1:55What is STM
  4. 2:08What is PITie
  5. 2:31PITie example
  6. 3:51Subprocessing
  7. 5:27Example
  8. 11:03Multithreaded program
  9. 13:29Multithreaded example
  10. 15:17Conclusion
  11. 17:54Running two threads
  12. 20:10Input output
  13. 20:49STM vs GIL
  14. 22:39Model to program
  15. 25:24Questions
~/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.