~/talk

RefCount++

Talkat PiterPy 2024 · 2024-09-18..09-27· [python, linux-and-operating-systems]
links:none on file
slides:none on file

Claim: RefCount and GC are independent. Experimental method: instrumented CPython (commenting the INC/DEC macros), used sys.getrefcount, ctypes to read by address, gc.disable/enable and a simple cyclic linked list, and measured heap with a memory profiler. Results: disabling GC leaves cycles uncollected; commenting refcount causes use-after-free crashes when reading by address; disabled GC lets memory explode — ~28GB then ~72GB in ~30s; conclusion: both mechanisms are needed, manual GC tuning or periodic calls mitigate but full disable is unsafe.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:12Reference counting basics
  3. 8:25Live experiments with refcount
  4. 12:10Disabling garbage collector
  5. 18:35Cyclic references and GC necessity
  6. 23:42Memory usage impact of GC
  7. 27:41Performance comparison with GC off
  8. 30:35Q&A session begins
  9. 35:58Immortal objects and edge cases
  10. 37:21Refcount limits and experiments
  11. 38:05GC vs refcount in memory cleanup
  12. 43:05Final discussion and summary
~/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.