1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Reduce Array allocations

This commit is contained in:
Akira Matsuda 2019-07-31 07:35:03 +09:00
parent acf7642ece
commit 7e299ce230

View file

@ -375,7 +375,7 @@ module ActiveSupport
last = parts.pop
parts.reverse.inject(last) do |acc, part|
parts.reverse!.inject(last) do |acc, part|
part.empty? ? acc : "#{part}(::#{acc})?"
end
end