~/talk

SpeedupRails, Speedup Your Code

Talkat Red Dot Ruby Conference 2014 · 2014-06-26..06-27· [web-performance, ruby]
slides:none on file

Shows concrete speed wins: uses Benchmark IPS, stackprof, gc.stat and allocation_tracer to measure Rails internals, builds a bind‑parameter cache for ActiveRecord relations (trading bounded memory for big speedups) and verifies it works. Reports up to ~70% fewer object allocations for post.find vs 4.1 and ~55% vs 2.3, about 100% faster for certain has_many through growth cases, and a 19% string‑allocation cut on a scaffold page. Includes experiments that explain when relation caching is worth the complexity.

AI-written summary · about

  1. 0:00Start
  2. 6:32Map of the World
  3. 10:34Performance Trade-Offs
  4. 10:58Time versus Space
  5. 12:41Performance Tools
  6. 15:52Standard Deviation
  7. 17:51Black Box Testing
  8. 23:26Stackprof
  9. 26:24Benchmarking Views
  10. 29:37Allocation Trace
  11. 30:54Speeding Up Active Record
  12. 33:17Bind Parameters
  13. 34:12Code Two Coupling
  14. 35:53Anonymous Middle Model
  15. 37:24Cache Object Internals
  16. 39:27Example Implementation
  17. 41:25Performance of Active Record
  18. 46:43Challenges
  19. 48:19Example Controller
  20. 52:10Speeding Up Helpers
  21. 52:31Reduce Object Allocations
  22. 54:25Tag Options Method
  23. 54:50Html Sanitization in Rails
  24. 59:31String Object Reduction
  25. 1:00:03Mutable Strings
  26. 1:01:54Speeding Up Output
  27. 1:02:11The Law of Demeter
  28. 1:04:38Output Buffer
  29. 1:07:30Github Was Finally Upgrading to Rails 3 0
~/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.