~/talk

Python's Infamous GIL

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

Explains what the GIL actually does with concrete examples: shows reference counting races down to pseudo-assembly, demonstrates deadlocks and priority-inversion, and quantifies past experiments — the free-threading patch runs 4–7× slowdown, atomic test-and-set makes CPython about 30% slower. Lays out what was changed in Python 3 to reduce starvation, compares CPython’s refcounting+C API to other interpreters’ GC, and spells the real costs and compatibility barriers to removing the GIL.

AI-written summary · about

  1. 0:00python's infamous gil
  2. 0:391992
  3. 3:28reference counting with threads
  4. 6:41multiple locks
  5. 7:31deadlock
  6. 8:50introducing: the gil
  7. 9:05gil ramifications
  8. 10:18sharing the gil in i/o bound code
  9. 11:12dave beazley's gil research
  10. 12:58release ACQUIRE release ACQUIRE
  11. 13:45the "new gil"
  12. 15:03meanwhile... the world has changed
  13. 16:14running python across multiple cores
  14. 16:47the "free-threading" patch
  15. 17:38atomic incr/decr
  16. 18:14python interpreters
  17. 18:59pure garbage collection
  18. 19:48modern language vms
  19. 21:23my opinion
~/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.