I recently switched from REE to ruby 1.9.2 and I was shocked by how
long it takes for rails to startup. This isn’t as much of an issue in
production, but in development and test environments it’s almost
unusable because it’s killing my workflow.
for example, sometimes I need to run a single test or play around in
the console. I’ve made sure I’m only loading gems I need and I’ve
switched to the RVM patched version of 1.9.2 which is a big help.
I’m also using spork for my tests. However, it still takes 20 +
seconds to load a console. Also, spork is fantastic for unit and
functional tests but can’t be used for integration tests because spork
requires config.cache_classes to be set to false, but integration
tests are painfully slow with that setting.
Is there anything else I can do to speed up the startup time,
especially in the development environment?