Project

General

Profile

« Previous | Next » 

Revision 921c2bba

Added by Josh Nichols almost 2 years ago

[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 of
a string.

https://github.com/rubygems/rubygems/commit/9b2006ef09