Closing Keynote
summary
Claims concrete gains: ERB compiled-and-evaluated per request runs ~27k renders/sec, caching compilation raises that to ~63k/sec, and defining generated methods pushes it to ~1.4M renders/sec; profiling shows cache-key calculation is the bottleneck. GitHub extracts an analyzer that does template pre-compilation and proposes a Same Format Assumption to resolve ambiguous renders, trading slightly slower boot for much faster runtime and lower memory after fork, with some compatibility caveats. Also notes tiny ergonomics tips like omitting parentheses and preferring single quotes.
AI-written summary · about
chapters (32)
- 0:00Closing Keynote
- 13:24Response Algorithm
- 17:2210 Years On Ruby Core!
- 19:02Java (1.3?) vs Ruby
- 29:03Parse States
- 30:23Allocation Count
- 33:50ERB Template
- 34:31Modified Compile Script
- 35:15Capturing Blocks
- 35:34Compiled Source
- 36:29Different ERB Flavors
- 37:10Rendering Speed
- 37:33Cache Compilation
- 38:06Define a Method
- 38:36Method Generation
- 39:33Rails Template Methods
- 40:03Memory Size
- 40:26Instance Variable Visibility
- 40:44Compiled Templates
- 43:00Templates Require Context
- 43:55Too Many Compilations
- 45:36Users Controller Controler
- 46:14Template Cache Keys
- 46:50Template Contents
- 47:09Requests and Rendering
- 48:05respond_to Controller "Bare" render
- 50:56Three Templates
- 52:07Profiled The Cache
- 53:24Static Analysis
- 54:10Same Format Assumption
- 55:26Ambiguous Render Problem
- 55:55Always Optimize








