Why is my Rails development environment so terribly slow? I am seeing 2-3 seconds in the log for a call, the actually time is about 10 seconds for a controller action. A good chunk of time seems to be spent on the asset pipeline.
Gems like rails-dev-tweaks do not really help so far.
- My Setup:
- OS X fully updated
- Ruby 1.9.3-p0 via rvm
- Rails 3.2.1
- MySQL installed via homebrew
- Server POW or webrick
log output:
Started GET "/" for 127.0.0.1 at 2012-02-10 13:14:34 +0000
Processing by HomeController#index as HTML
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
User Load (0.7ms) SELECT `users`.* FROM `users`
Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 1 LIMIT 1
Rendered home/index.html.erb within layouts/application (40.2ms)
Rendered shared/_navigation.html.erb (0.7ms)
Completed 200 OK in 2084ms (Views: 44.6ms | ActiveRecord: 9.6ms)
OK, I figured out what made it slow. It was the Rails Footnotes gem that came with the app template from: http://github.com/RailsApps/rails3-devise-rspec-cucumber
I have also created an issue on github:
https://github.com/RailsApps/rails3-devise-rspec-cucumber/issues/22