惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
J
Java Code Geeks
有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
Apple Machine Learning Research
Apple Machine Learning Research
量子位
D
Docker
V
Visual Studio Blog
博客园 - 司徒正美
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
U
Unit 42
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
V
V2EX
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
Vercel News
Vercel News
C
Check Point Blog

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
Routes Lookup Optimizations, PostgreSQL Alter Table impro...
David Heinemeier Hansson · 2025-02-14 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, February 14, 2025
Posted by vipulnsward

Hey everyone, Happy Friday!

Vipul here with the latest updates for This Week in Rails.

This week, several improvements were made to Routes lookup. Below are a few notable changes-

Speed up GTG Simulator by reducing slices/matches
This change improves routing performance by 10-20% in simple cases by removing duplication and preventing excess string allocations.

Micro-Optimize Router#find_routes
This PR slightly improves the routes finding process by removing overheads and speeds up the route look up process by 2-2.5x faster compared to Rails 8.0.

Simplify stdparam state to reduce retained hashes
This PR simplifies the data stored in stdparam_state to be a simpler hash mapping and improving performance in hash intensive operations.

Here’s a list of other PRs with improvements around this area: #54504, #54491, #54505, #54515, #54516, #54526.

Allow execution wrapper to handle all exceptions
This PR changes the execution wrapper and execution middleware to default to catching all Exceptions instead of all StandardErrors.

Essentially, before this change:

Rails.error.handle do
  raise Exception
end

would not handle the exception, but now it does.

Make Value type default to mutable
This change makes the ActiveModel type values mutable by default, which in turn guarantees that custom type values are duplicated appropriately when modified.

Pass keyword arguments to PostgreSQL Adapter Table methods
With the use of forward argument (...) PostgreSQL adapter table definition methods can now accept keyword arguments. This change lays essential groundwork for validate_constraint and validate_check_constraint to start accepting keyword arguments.

Further restrict which contradicted queries need to be run
This change ensures that only fully matching queries trigger aggregation, ignoring mismatches and certain ARel values to avoid some additional queries.

Allow to skip HashWithIndifferentAccess value conversion
This PR addresses an inefficiency in ActiveModel’s handling of attribute changes, specifically when working with HashWithIndifferentAccess in serialized attributes.

You can view the whole list of changes here.

We had 18 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.