~/talk

Ruby Performance Secrets and How to Uncover Them

Talkat RubyConf 2014 · 2014-11-17..11-19· [ruby]
slides:none on file

Specifics matter: inject and especially all? allocate hidden objects when nested in loops and trigger GC, bigdecimal and string comparison is unbelievably slow in Ruby 2.0, and parsed CSV is 13x larger in memory than on disk. Measure with RubyProf (CPU and memory modes), install patched Ruby via rvm and the Rails/patch set, visualize with kcachegrind, and drop into GDB to inspect C-level allocations; test gsub versus gsub! — run the profiler, read the source, and verify any rule of thumb.

AI-written summary · about

  1. 0:00Start
  2. 2:39What do we talk about today?
  3. 3:30What can go wrong with this code?
  4. 4:54Let's check what happens
  5. 6:16Let's profile memory allocations
  6. 15:52Lessons learned
  7. 17:05What's the difference?
  8. 18:13Let's profile memory usage
~/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.