~/talk

Who You Gonna Call: Analyzing the Run-time Call-Site Behavior of Ruby Applications

Talkat DLS 2022 · on Wednesday, 2022-12-07· [ruby]
links:none on file
links:none on file
slides:none on file

Analysis covers 74 benchmarks and finds call sites are overwhelmingly monomorphic (about 98% monomorphic), yet 40–60% of caches contain duplicate entries. TruffleRuby-style splitting collapses polymorphism effectively but often produces identical cloned caches — up to ~60% in a benchmark — wasting memory and adding runtime cost. Call-site behavior follows three patterns (initialization, phased shifts, mirroring) and blocks are measurably more polymorphic than methods (e.g., least-polymorphic blocks ~2.1% vs methods <1%). Proposal: context-driven splitting guided by argument types to avoid unnecessary clones.

AI-written summary · about

  1. 0:00Ruby call-site behavior
  2. 1:28Call-site assumptions
  3. 3:16Call-site optimizations
  4. 4:21Splitting optimization
  5. 8:57Over-splitting and cache
  6. 12:26Runtime stability
  7. 16:43Polymorphic call sites
  8. 19:36Methods vs blocks
  9. 21:22Key findings
  10. 22:58Q&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.