~/talk

Knowing your garbage collector

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

Explains that CPython combines generational reference counting with cycles detector (objects carry refcount, three generations, thresholds) and walks the actual cycle-detection steps: refresh refcounts, subtract internal-generation references, find zero-count false positives, mark reachable, move survivors to older generation, free the rest. Notes PyPy uses an incremental MiniMark GC with nursery/arenas, minor and incremental major collections for many short-lived objects. Shows a small Python demo and uses the gc module API to force collections; the demo runs and reclaims cyclic garbage.

AI-written summary · about

  1. 0:00Intro
  2. 0:24Agenda
  3. 1:24Motivation
  4. 2:23Memory Manual
  5. 4:41Garbage collection in every scenario
  6. 5:31History of garbage collection
  7. 6:20Definition of garbage collection
  8. 7:21Garbage collection tradeoffs
  9. 9:00Example
  10. 13:48Cycles
  11. 14:23Memory Leaks
  12. 15:25Garbage Collectors
  13. 16:37Cycle Detection
  14. 17:53Implementation
  15. 18:44Iterating
  16. 20:05Check reachable objects
  17. 20:50Move to next generation
  18. 27:18Some problems
  19. 28:05Incremental
  20. 29:13Pipe
  21. 30:54Memory Model
  22. 32:03Faces
  23. 33:00C Python
~/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.