Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've tried all three (granted the Ubuntu versions were via VirtualBox with XP as a host, but I gave the images all the available RAM my system has). Loading the rails environment is taking 30-60 seconds. rails console, rake test:units - anything that requires rails to load up. And not just on the first go - every time. I've even used autotest to see if it helps with execution time for unit tests, but it doesn't. Any time I change one test, it still takes 30 seconds to load them, and then about 4 seconds to execute.
Has anyone else come across this issue? Has anyone figured out any way to fix this?

share|improve this question
"I gave the images all the available RAM my system has," be careful: giving too much RAM to a virtual machine is a common mistake that will kill performance by depriving the host OS. Rails runs fine in Unix environments with very little RAM, as evidenced by the abundant availability of perfectly functional Rails-optimized hosted virtual servers with only 256MB of RAM. You probably have no reason to cut it quite that thin, but giving your VM more than a gig of RAM is highly unlikely to yield a significant performance advantage in a development/test environment. – Miles Erickson Apr 13 '11 at 23:17

1 Answer

checkout http://github.com/rdp/faster_require or alternatively run it in a virtualbox running linux.

share|improve this answer
The original poster has tried running it in a virtual Linux machine, and it's made no difference. – kaerast Jun 11 '10 at 18:05
Yeah but that library looks like it might help. Thankfully I'm no longer stuck in the awful world of developing ruby on Windows, so I can' try it out. Thanks for the answer though! – bergyman Jun 12 '10 at 14:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.