~/talk

Deoptimization: How YJIT Speeds Up Ruby by Slowing Down

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby]
slides:none on file

YJIT compiles Ruby methods to native code and claims 2× speed on Rails bench, with real production measurements showing 18% average / 33% peak storefront speedup at Shopify and deployments at other companies. It exposes a development mode (configure --enable-ydev and --dump), uses code patching and global invalidation for quick fallback, and Ruby 3.4 adds registerized locals, lazy frame push, singleton-class invalidation and a C-trace attribute to preserve backtraces — all intended to make aggressive optimizations safe in production.

AI-written summary · about

  1. 0:00Introduction to YJIT
  2. 4:44Traditional deoptimizations
  3. 11:19New deoptimizations in Ruby 3.4
  4. 20:25C-trace attribute and conclusion
~/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.