Pass the full path when calling the original Kernel.require if available.
authorU.Nakamura <usa@garbagecollect.jp>
Fri, 14 Nov 2014 03:45:25 +0000 (12:45 +0900)
committerU.Nakamura <usa@garbagecollect.jp>
Fri, 14 Nov 2014 04:30:58 +0000 (13:30 +0900)
commite2935c85fc62594ccd567c8facd46ddbd01ad100
tree1cce7682516547ab9c77c76a77361e9dc26bf5d0
parent2092d10136a11259b8671b13d1184520dd2a7aab
Pass the full path when calling the original Kernel.require if available.

calling the original Kernel.require with a full path is about 25% faster than with path-less paramter.
this reduces about 5% total time of rubygem's Kernel.require on my test environment.
lib/rubygems/basic_specification.rb
lib/rubygems/core_ext/kernel_require.rb
test/rubygems/test_gem_specification.rb