Thomas E Enebo created JRUBY-6610: ------------------------------------- Summary: JRuby 1.9 mode require does multiple requires and extra file system searching Key: JRUBY-6610 URL: https://jira.codehaus.org/browse/JRUBY-6610 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6.7 Reporter: Thomas E Enebo Priority: Blocker Fix For: JRuby 1.7
Our 1.9 logic seems to be searching through filesystem to try and determine the canonical path we are storing our loads under in features. It appears MRI is not doing this. This little program (make an 'a' and 'b' directory both containing a 'test.rb' with different contents) demonstrates us double loading where MRI will not (tried against MRI 1.9.2 and 1.9.3): {noformat} $LOAD_PATH << 'a' require 'test' $LOAD_PATH[0] = 'b' require 'test' {noformat} Our resolution process may be a significant load cost for things like rails which has a lot of the same requires sprinkled around their codebase. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email