~/talk

Optimizing JRuby 10

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

JRuby 10 ships with Ruby 3.4 compatibility and requires Java 21, and startup improves using app CDS with future gains expected from project leaden AOT caching and project crack checkpoints. Pure Ruby microbenchmarks show CRuby 3.4 ≈15 iters/s on a red‑black tree while JRuby outperforms YJIT; object allocation goes from ~10.3M/sec in CRuby (13M with Aaron’s patch) to hundreds of millions/sec on modern JVMs. Fibers move from ~49 iters/s with native threads to much faster rates using Loom virtual threads; ActiveRecord adapters remain the main Rails friction.

AI-written summary · about

  1. 0:00Introduction and JRuby 10 release
  2. 3:36Ruby compatibility progress
  3. 6:55Rails 8 compatibility challenges
  4. 7:16Startup time optimizations
  5. 11:47Straight-line performance gains
  6. 14:19Fibers and virtual threads
  7. 15:44Object allocation optimizations
  8. 19:14Ruby Data class performance
  9. 20:20Concurrency with threads vs Ractors
  10. 23:55Ruby beyond Ruby with JRuby
  11. 26:43Future optimizations and community help
~/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.