~/talk

Performance Optimization in Ruby

Talkat RubyConf AU 2017 · on Friday, 2017-02-10· [ruby]
slides:none on file

Optimizations on a real concurrency library, Celluloid, produce concrete results: about 300% speedup on hot paths after targeted fixes. The workflow uses measurable steps — Benchmark IPS to quantify ops/sec, profiler dumps plus RubyProf and KCacheGrind to find CPU hotspots, ObjectSpace diffs for allocation leaks, and cross-implementation comparison (MRI, JRuby, Rubinius) to pick the fastest VM. Examples include a pooled-worker benchmark, identified slow methods, implemented changes, and repeatable benchmarks that confirm the gains.

AI-written summary · about

  1. 0:00Introduction
  2. 2:18What is Performance Optimization
  3. 3:10Have a Benchmarking Suite
  4. 5:28Upgrade your Ruby
  5. 7:48Try another implementation
  6. 9:20Profile methods
  7. 9:41bottleneck
  8. 10:21multithreading
  9. 11:20other tools
  10. 16:55Wrap up
~/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.