Faster blank? checks, safer SQLite rollbacks, and more!
This week's changes merged to Rails main include a faster String#blank? that scans bytes for ASCII-only strings instead of running a regular expression, while non-ASCII strings keep the regexp path. Active Record now shares a read-only set of default attributes with a per-Ractor fallback; in the PR author's ruby-bench run, average time fell from 199 ms to 170 ms, against 134 ms for Rails 8.1.4. Action View also renders collections with fewer intermediate objects, and the Agents on Rails benchmark added a third stage of multi-step tasks.
AI-written summary, checked against the cited sources. How summaries work