Cat Care and Maintenance
summary
Rails view work focuses on cutting object allocations and measuring results: heap dumps via object_space.dump converted to graphs, GC metrics from GC.stat, and the allocation_tracer gem to find hot lines. Patches remove an extra HTML-safe buffer and a needless nil/to_s path, saving about 200 allocations per request and showing a ~14–19% reduction in allocations on tested pages. Also notes Ruby VM improvements (generational GC, symbol GC coming, and a JIT prototype claiming 2–10x).
AI-written summary · about
chapters (12)
- 0:00Start
- 21:01Keys (check GC.stat)
- 21:50What does find() cost?
- 23:38Request Benchmark
- 24:17Test Results
- 29:27Output
- 31:55Tag Options
- 32:30Ordinary String
- 35:13Extract Method
- 35:36Update Callers
- 37:23ERB Template
- 37:33Compiled Template
related talks
49mRabbit Hole: Garbage Collection and Ruby's Future
45mClosing Keynote: Analyzing and Reducing Ruby Memory Usage
41mSpeed up Rails, Speed up Your Code
01h 02mPerformance
53mRuby.inspect
29mTidying Active Record Allocations
42m3x Rails: Tuning the Framework Internals
27mNew Ruby 2.1 Awesomeness: Pro Object Allocation Tracing
