2021/07/17分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix performance slowdown in Ruby 2.7+
activesupport/lib/active_support/core_ext/object/try.rb
の修正です。
try
、try!
メソッドの最初の引数(method_name
)を切り出だすようにしていたのを、切り出さないよう修正しています。
23% faster Nil#tryで高速化の為に行った対応だったのですが、Ruby 2.7+では元のコードが速くなっている為。
Add an option threshold: to .parallel() setup method (#42789)
Active Supportの修正です。
Parallelize tests only when there are enough to justify the parallelization overheadで追加したparallel testsのthresholdを、test caseでも設定出来るよう修正しています。
class ActiveSupport::TestCase parallelize threshold: 100 end