Development Speed Optimizations in Rails 8
summary
Rails 8 lands concrete boot-time fixes: a new bin rails boot command for profiling with stackprof and SpeedScope, file-watcher changes that cut translation-watch time from ~500ms to ~90ms (roughly a 5x improvement), a lazy route set that defers drawing ~3,000 routes (avoiding ~460ms on boot), and a reworked initializer topological sort that eliminates a 750ms T‑sort for ~2,000 initializers (faster sort shipped in PR 53615 for Rails 8.1); Shopify drops from ~12.5s to ~3.5–4s.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 2:30bin/rails boot and boot time
- 6:25File watching in Rails 8
- 11:48Lazy loading routes
- 17:48Faster initializer sorting
- 23:55Recap and impact of optimizations
- 25:29Q&A
related talks
41mProfiling to make your Rails app faster
01h 15mSpeedupRails, Speedup Your Code
41mSpeed up Rails, Speed up Your Code
40mBusting Performance Bottlenecks: Improving Boot Time by 60%
42m3x Rails: Tuning the Framework Internals
33mSpeeding Up Your Front-End: 2016 Version
02h 05mFrom slow to go: Rails test profiling hands-on
01h 02mPerformance
