~/talk

Analyzing and Reducing Ruby Memory Usage

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [ruby, web-performance]
slides:none on file

Covers practical measurement with malloc stack logging (macOS) and the AllocationTracer gem, then implements two Ruby 2.6 patches: feature cache patch and direct instruction marking. The feature cache change avoids creating many Ruby string objects and cuts string count ~45% and a simple Rails startup’s memory ~42%. Direct instruction marking removes the long IC mark array (IC entries drop ~34%) and yields about a 6% process memory reduction in the sample Rails app.

AI-written summary · about

  1. 0:00Introduction and self-introduction
  2. 3:01Ruby 2.6 memory optimizations
  3. 8:48Finding memory usage with tools
  4. 15:48Optimizing string allocations
  5. 19:14Feature cache optimization results
  6. 20:50Bytecode and VM internals
  7. 25:47Bytecode compilation process
  8. 32:33Memory reduction in bytecode
  9. 37:30Direct marking optimization
  10. 38:54Impact of direct marking
  11. 40:00Summary and call to upgrade
~/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.