Ruby on Rails: Performance Cleanup Across the Stack
Today's Rails merges cluster around squeezing out unnecessary work — faster time formatting, a quicker schema cache format, and a fix for correctness in atomic file writes — plus one open PR closing a real security gap in Active Storage's S3 defaults.
Duration: PT2M44S
Episode overview
This episode is a short developer briefing from Ruby on Rails.
It explains recent repository work in plain language.
- Show: Ruby on Rails
- Published: 2026-09-16T13:15:42Z
- Audio duration: PT2M44S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning, it's September 16th, and this is your Rails briefing.
The clear thread today is performance without sacrificing correctness — several merges trim wasted work in hot paths, while one open PR closes a security gap that's been sitting since S3's defaults changed.
Start with speed. PR 58751 from yaroslav reworks how TimeWithZone handles xmlschema, to_s, and offset formatting. The new approach leans on Ruby's built-in iso8601 formatting instead of manual regex and string substitution — same output, less overhead, on a method that gets called constantly in any app rendering…
PR 58769 adds a JSON option for dumping and loading the schema cache, from ilianah. The author's own benchmark, on a 944-table production schema, showed JSON loading meaningfully faster than YAML. For apps with large schemas, that's real boot-time savings, and it gives teams a format choice depending on their tooling.
Then there's PR 58783, still open from stahor, targeting single table inheritance. Right now, resolving an STI subclass calls descendants, which isn't memoized — every lookup walks the whole class tree and scans it linnearly. That cost scales with rows times subclasses, so on any app with…
Sec…
Nearby episodes from Ruby on Rails
- Quiet Correctness Fixes and Ractor Readiness
- Locking Down the Edges
- Weekly Recap - Ractor Safety and Boot Reliability
- Boot Failures and a Stored XSS Fix
- Ractors, Vips, and the Performance Push
- Getting Serious About Ractor Safety
- Multi-Database Correctness and Quiet Data Bugs
- Performance Fixes and Real-World Bug Reports