From: Greg Hazel Date: 2010-03-13T12:20:22+09:00 Subject: [ruby-core:28636] [Bug #2723] $: length affects re-require time of already loaded files Issue #2723 has been updated by Greg Hazel. The speed in SVN trunk is much better: $:.length: 9, 0.000090 seconds $:.length: 12, 0.000150 seconds $:.length: 21, 0.000250 seconds $:.length: 48, 0.000490 seconds $:.length: 129, 0.001160 seconds $:.length: 372, 0.003140 seconds $:.length: 1101, 0.008981 seconds Still not constant, which I think it probably could be if the absolute paths of both "/path/to/foo" and "/path/to/foo.rb" were written to $" when "foo" is loaded. Much better, though. Any chance this speed improvement will be backported to 1.8.x? ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2723 ---------------------------------------- http://redmine.ruby-lang.org