~/talk

Profiling to make your Rails app faster

Talkat RailsConf 2021 · 2021-04-12..04-15· [web-performance]
links:none on file
slides:none on file

Uses rack-mini-profiler to find that checkouts slow because payment capture and email hit remote services and moving those to ActiveJob makes requests fast; caching product partials drops product index from ~600ms to ~40ms (~15x); boot time regresses by ~4s due to shipping rates initializer, moving it to a rake task and streaming the download halves memory allocations; fixes an N+1 on cart items with includes and verifies ~10x win with benchmark/ips.

AI-written summary · about

  1. 0:00Start
  2. 4:46Upgrade Ruby
  3. 7:04Database profiling
  4. 7:53Memory profiling
  5. 10:12Call-stack profiling
  6. 16:41Controller
  7. 21:37Development vs Production vs Test
  8. 29:56Code loading
  9. 34:56Production profiling
  10. 39:39Rack Mini Profiler
  11. 39:56Use Caching
  12. 40:13Memory profile complex methods
  13. 40:34Benchmarking
~/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.