The Life-Changing Magic of Tidying Active...
summary
Uses memory profiler and derailed benchmarks to collect allocations, finds ActiveRecord respond_to allocating strings and replaces it with a symbol→string hash to cut allocations ~1% and speed web requests ~1.01x. Finds time-parsing hot path, avoids needless Time allocation to cut allocations ~5% and speed requests ~1.23x (claimed equivalent to ~19 fewer servers). Builds a caller-aggregation tool (Whence) to prioritize fixes from real backtraces.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:14Pain Free Rails 66 Deployments
- 4:47TIDYING UP Active Record
- 8:35malloc is slow
- 10:34Bytes reduced is a consistent metric
- 12:08gem install derailed benchmarks
related talks
21mOn Memory
01h 02mPerformance
46mHalve Your Memory Usage With These 12 Weird Tricks
43mTurbo Boosting Real-world Applications
26mRails Performance Monitoring 101: A Primer for Developers
35m"10 performance sins of Rails applications"
57mFuture of Developer Acceleration with Rails
02h 05mFrom slow to go: Rails test profiling hands-on
