[rubygems/rubygems] ENV.to_h returns a new hash, so we can select! it to avoid allocating another hash.
select!
String#start_with? is faster than regex that is bound to the start of a string.
String#start_with?
https://github.com/rubygems/rubygems/commit/9b2006ef09
[rubygems/rubygems] ENV.to_h returns a new hash, so we can
select!
it to avoid allocating another hash.String#start_with?
is faster than regex that is bound to the start ofa string.
https://github.com/rubygems/rubygems/commit/9b2006ef09