~/talk

Is it me or Python memory management? 🤔💻

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [python]
links:none on file
slides:none on file

Explains that every Python value lives on a private heap as an object with fields (value, type, reference count), shows how assignments increment and decrement refcounts, and describes the two-pronged cleanup: immediate reference counting and cyclic garbage collection with configurable thresholds and manual calls like gc.collect. Demonstrates practical diagnostics with memory_profiler, warns that caches and reference cycles create “immortal” objects, and recommends hardware choices (RAM/SSD/CPU) based on workload.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:10Performance factors overview
  3. 3:16Hardware components for Python
  4. 9:25Python memory manager explained
  5. 12:16Python objects and references
  6. 15:33Reference counting and garbage collection
  7. 17:40Key takeaways and optimization tips
  8. 19:29Q&A session
~/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.