~/talk

A Day in the Life of a Ruby Object

Talkat RailsConf 2021 · 2021-04-12..04-15· [ruby]
slides:none on file

Creates one billion objects (40 bytes each) on a 16 GB machine and shows it completes because C Ruby’s GC reclaims unreferenced slots, with GC.stat reporting ~50,000 collections and only four major runs. Explains Heap layout: ~16 KB pages with ~409 fixed 40‑byte slots, ObjectSpace.dump to inspect addresses and age flags, generational GC (object becomes old after three minor collections), and GC.compact / auto‑compaction added in Ruby 3 to defragment pages.

AI-written summary · about

  1. 0:00Start
  2. 4:20Conceptualize GC related issues
  3. 8:25Operating System Heap
  4. 17:14What is a root RVALUE?
  5. 35:04Recap
~/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.