Jeremy Evans 51d0e58772
[rubygems/rubygems] Avoid unnecessary splat allocation
Because get_push_scope is a method call, Ruby will allocate an array
for *args even though it is not necessary to do so. Using a local
variable avoids the allocation.

Found by the performance warning in Ruby feature 21274.

https://github.com/rubygems/rubygems/commit/0473c0cf32
2025-04-22 11:27:24 +09:00
..
2024-01-29 12:14:21 +09:00