Performance and parallel testing improvements and more!

Posted by gregmolnar, July 19, 2021 @ 12:00 am in News

Hi, this is Greg, bring you the latest news of the Rails world. It’s been a quiet week, so we don’t have much changes to cover this time.

Fix try and try! performance slowdown in Ruby 2.7+

This PR fixes a performance regression in try and try! under ruby 2.7+.

Fix eager_loading? when ordering with Hash syntax

After this change, eager_loading? is triggered correctly when using order with hash syntax on an outer table, instead of raising an error.

Parallelize tests only when there are enough to justify the parallelization overhead

Parallelizing tests has a cost in terms of database setup and fixture loading. This change makes Rails disable parallelization when the number of tests is below a configurable threshold.

29 people contributed to Rails since last time. All the changes can be checked here. Until next week!