Hi. I have huge Rails app on development right now, which run VERY slow on -e development. I use Mongrel as web server. Is there any way to speed up a little bit everything? Because i have to wait 3-10 sec. to reload a page. Thanks.
A very simple way to get a speed boost is to turn on class caching in development mode...
In config/environments/development.rb: config.cache_classes = true
That means Rails won't reload all the models/controllers/etc. on every request, so it'll go a lot faster, but it means you have to stop/start your server to see changes to anything except views.
Perhaps also some things need some optimising if you are taking 3-10 seconds to render an action locally.
I think if you're on Vista, Mongrel has performance issues when bound to all addresses (0.0.0.0)
Bind to 127.0.0.1 or your real I.P. (mongrel -b 127.0.0.1 -p 3000 -e development) and see if it makes a difference.
Also, if you have a connection intensive software currently open, like bittorent with a lot of open connections, your network interface might reach a maximum number of connection and slow down Mongrel. Closing bittorent, then maybe even rebooting, might fix your problem.
If you're on windows, use some mingw builds of Ruby http://rubyinstaller.org/downloads/
If you're on linux, this might be helpful for running tests