~/talk

Speed up Rails, Speed up Your Code

Talkat Cascadia Ruby 2014 · 2014-08-11..08-12· [ruby, web-performance, testing]

Benchmarks and profilers drive every decision: use benchmark-ips and ruby -d to measure iterations and hidden exceptions, sample with stackprof and inspect allocations with gc.stat and allocation_tracer, and trace calls via TracePoint. Finding: tag_options calls erb_utils.h create extra strings and an unnecessary SafeBuffer step; changing the escape path and freezing template literals cuts about 200 allocations per request and yields roughly 19% fewer objects vs 4.0-stable (14% vs 4.0.1). Rails 4.2 focuses on these concrete wins.

AI-written summary · about

  1. 0:00Intro
  2. 1:20Development
  3. 1:34Jurassic Park!
  4. 2:53Cascadia Style Sheets
  5. 4:33Ruby Core Rails Core
  6. 6:43Ground Breaking Technology
  7. 7:06Markov Chains
  8. 9:01Picking Random Children
  9. 10:35Total trip cost
  10. 13:00Speed up Rails, Speed up your Code
  11. 14:35Find Swallowed Exceptions!
  12. 16:07Next Generation
  13. 17:37Performance Tools
  14. 18:17Raw Performance
  15. 21:57Blackbox Testing
  16. 24:34Does the length of the route impact "link_to"?
  17. 28:46Speeding up Helpers
  18. 28:57Profiling Request / Response
  19. 32:12String - String - String
  20. 33:25String Object Reduction
  21. 34:32Template Literals Can't Change
  22. 34:49Speeding up Output
  23. 35:11Law of Demeter
  24. 37:54Defensive Programming
  25. 38:04Limiting Types
  26. 39:00Eliminate Objects
  27. 39:20Report Performance Issues
  28. 40:21MEASURE!
~/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.