~/talk

YJIT Makes Rails 1.7x Faster

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, ruby-on-rails]
slides:none on file

Claimed speed goes from 1.7× to 1.8× faster when YJIT runs in real workloads and Shopify reports a 17% speedup on its storefront with overall production improvements of 10–20%. Enabling options are RUBY_YJIT_ENABLE=1 or RubyVM::YJIT.enable and Rails 7.2 can add an initializer. Ruby 3.3 implements VM send callbacks to avoid side exits (raising JIT coverage from ~32% to ~99%), compiles exception handlers, adds a register allocator and more C method specializations, and exposes YJIT memory tuning via YJIT exec_mem_size (default 48 MB).

AI-written summary · about

  1. 0:00Introduction to YJIT
  2. 1:11How YJIT works
  3. 2:09Enabling YJIT in production
  4. 3:11Configuring memory usage
  5. 6:52Performance improvements in 3.3
  6. 8:54Addressing dispatch and caching
  7. 16:59Handling exceptions in YJIT
  8. 20:08Stack and register optimization
  9. 23:33Method inlining and C integration
  10. 27:02Conclusion and call to action
~/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.