~/talk

High Performance Ruby

Talkat GoGaRuCo 2012 · 2012-09-14..09-15· [ruby]
slides:none on file

JRuby runs Ruby on the JVM and claims multi× speedups by teaching the JVM Ruby semantics via invokedynamic, using class-level method cache serials and class-held instance variable offsets so lookups become direct memory accesses. Benchmarks show a pure Ruby red‑black tree (100,000 nodes) dropping from ~4–4.5s on MRI 1.9 to ~0.8s on JRuby+invokedynamic; empty-method microbenchmarks mislead. Remaining work: closures, super/missing call patterns, native C‑extension incompatibilities, GC and parallelism improvements; progress is real but incomplete.

AI-written summary · about

  1. 0:00Intro
  2. 2:27High Performance?
  3. 3:33Fast Enough
  4. 4:09Performance Wall
  5. 5:06Native Extensions
  6. 5:48What We Want
  7. 7:02What We Can't Have
  8. 8:00Different Approach
  9. 8:57Build or Buy
  10. 11:47But Java is Slow!
  11. 13:09JRuby
  12. 14:11Long, Hard Road
  13. 16:26Align with JVM
  14. 17:14Unnecessary Work
  15. 17:58Method Lookup
  16. 19:46Constant Lookup
  17. 20:21Instance Vars
  18. 20:56Optimizing Ruby
  19. 22:14JVM 101
  20. 25:39Dynamic Invocation
  21. 26:18Constants
  22. 27:40Instance Variables
  23. 29:16Benchmarking is Hard
  24. 32:04JVM Opto 101
  25. 33:19Inlining
  26. 34:14Optimistic
  27. 36:07What Happened?
  28. 36:30Benchmarking is Not Enough
  29. 39:44Moral
  30. 40:03bench_red_black
  31. 43:44Rails Perf
  32. 44:17Expand Opto
  33. 44:47Wacky Stuff
  34. 45:40The Future
~/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.