~/talk

On Memory

Talkat MountainWest RubyConf 2015 · 2015-03-09..03-10· [ruby-on-rails]
slides:none on file

Shows concrete memory tools and surprises: uses object_space / objectspace.so and GC.stat to find live objects and allocation sites, and recommends the memory_profiler gem (Sam Saffron) and GC.profiler. Demonstrates lazy enumerator tradeoffs with measured results (45% fewer bytes but thousands more arrays; small inputs make lazy worse), shows memoization can retain huge objects, counts string allocations (500 vs ~203 vs 100 with interpolation), and warns define_method closures keep strings alive.

AI-written summary · about

  1. 0:00Start
  2. 9:27lazy enumerables
  3. 14:59memoization
  4. 16:02string freezing
  5. 19:08method definition
~/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.