~/talk

Improve Performance Quick and Cheap: Optimize Memory and Upgrade to Ruby 2.1

Talkat RailsConf 2014 · 2014-04-22..04-25· [ruby, devops-and-delivery]
slides:none on file

Claims that memory optimization is the #1 thing to speed Rails apps, with concrete numbers: garbage collection sometimes consumes 70% of CPU time and upgrading to Ruby 2.1 yields about a 40% improvement in GC-heavy workloads. Demonstrated by a CSV job falling from ~20s to ~15s when switching to 2.1 and by further wins when switching to CSV line-by-line, in‑place string ops, GC tuning, ObjectSpace and Valgrind massif; also recommends process memory limits, forking workers, and running GC between requests.

AI-written summary · about

  1. 0:00Start
  2. 1:14Why?
  3. 7:23How?
  4. 7:40Tune Ruby GC
  5. 12:15Limit Growth
  6. 16:51Write Less Ruby
  7. 19:51Avoid Memory Hogs
  8. 23:17Tools
~/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.