Has anyone noticed an exponential difference in load times after upgrading to Rails 3.1. It’s taking ~4 seconds to load a very basic request on my local development machine. Does anyone have any ideas how to solve this – suspect it’s something to do with Rails new asset pipeline?
Has anyone noticed an exponential difference in load times after upgrading to Rails 3.1.
Share
Take a look at https://github.com/wavii/rails-dev-tweaks.
Rails is running all of the to_prepare hooks on every Sprockets asset request in development mode. This includes things like auto-(re)loading your code, and various gems sneak work in there too.
rails-dev-tweaks disables to_prepare & reloading on any asset request (and a few others – read the first part of its README). Speeds up your dev environment by a huge amount for any decently sized project. It’s also configurable to do this for any additional requests you like