~/talk

Building the Next-Generation Garbage Collector in Ruby

Talkat RubyConf 2026 · 2026-07-14..07-16· [ruby]
slides:none on file

MMTk integration for Ruby now matches the default GC’s speed after adding moving Imix, a bump-pointer fast path and a Ruby heap growth policy. Benchmarks show single-threaded marking 38.5ms vs 16‑core parallel 11.9ms (≈3× speedup), the fast-path allocation yields ~4% faster string allocation, and switching from MMTK’s dynamic heap to the Ruby heap cuts an ActiveRecord run from 845ms to 233ms (default GC still 148ms).

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Ruby GC limitations
  3. 6:18Modular GC features
  4. 7:44MMTK introduction
  5. 8:26MMTK algorithms
  6. 9:08MMTK parallelism
  7. 11:39Dynamic object sizes
  8. 12:21MMTK improvements
  9. 12:42Imix benefits
  10. 13:45Imix in MMTK
  11. 14:27Bump pointer allocator vs free list allocator
  12. 15:50Bump pointer fast path
  13. 18:57Heap growth algorithms
  14. 20:00Ruby heap benchmarks
  15. 22:54MMTK future improvements
  16. 23:15Generational garbage collection and sticky mark bit
  17. 26:24Enhancing MMTK parallelism
  18. 27:28Dynamic allocation optimization
  19. 28:10JIT fast path inlining
  20. 29:14Summary
  21. 29:55Q&A
~/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.