Hi guys, Just thought we might not be the only project currently on Rails 2.3 who've found startup mysteriously slower on our dev machines in recent weeks.
After a bit of testing to find what changed we've nailed it down to an "enhancement" in rubygems 1.6: "Major Enhancements: Rewrote how Gem::activate (gem and require) resolves dependencies." (http://blog.segment7.net/2011/03/01/rubygems-1-6-0) - it now looks through the load paths in a different order - a kinda dumb order: it now attempts about 10-50x as many file stats as previously to load most of the files loaded in our project (which has a fair number of gems). On OS X at least this is pretty painful to watch, as it does a number of syscalls for each (for one thing, it tries for a .bundle, .dylib, and .rb for each path for each require). This doesn't seem to be an issue under Rails 3, presumably due to bundler which loads gems in a different way, so if you're planning to upgrade soonish this may only be a short-term problem for you - in which case downgrading using "sudo gem update --system 1.5.3" is probably the most pragmatic solution. Hope this saves someone some time! Cheers, Will -- You received this message because you are subscribed to the Google Groups "WellRailed" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.
