~/talk

Writing fast Ruby

Talkat Barcelona Ruby Conference 2014 · 2014-09-11..09-13· [ruby, web-performance]
slides:none on file

Shows concrete, measurable wins: use Benchmark IPS to compare changes, yielding beats explicit proc calls — 5x faster in a real production patch — flat_map replaces map+flatten for ~4.5x speedup, replace gsub with sub when only one occurrence for ~50% savings, fetch with block avoids allocating defaults (~2x), prefer while loops over each_with_index (~80% faster) in hot paths, prefer bang mutations and direct assignments to avoid allocations, and a pull request to Rails currently lands many of these fixes.

AI-written summary · about

  1. 0:00Introduction to optimization
  2. 1:31Practical code examples
  3. 34:03Future of Ruby performance
  4. 37:15Q&A and conclusion
~/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.