From: Curt Hibbs Date: 2005-04-10T10:45:53+09:00 Subject: Re: Rails Scripts Slow? HBTaylor wrote: > I have just started looking at Ruby and Ruby on Rails, and have run > into a question. It may very well be something in an FAQ or something, > but I haven't had luck framing the right query to find it. Thanks for > any help out there. > > I have been following Curt Hibbs' tutorial from ONLamp, and the Rails > scripts seem to be VERY slow to execute. For example, just running > "ruby script/generate" to get the usage information takes more than 30 > seconds. If I run "ruby -v script\generate", I see a whole slew of > messages go by, and there are pauses after various messages (i.e., > "method redefined" and "ambiguous first argument"). I can include the > verbose messages if needed, but don't want to take up space if it is > something I should have found otherwise. > > Some details: > > OS : Windows XP SP2 > Processor: 2.8GHz Celeron > Ruby version : 1.8.2 > Rails: Installed via gem (on April 8, 2005) > > Running "ruby -v" returns a value almost instaneously. > Running a trivial "Hello World" application executes almost > instaneously. > > I don't know if there is something weird with my configuration, or if > there is some way to cache the information so it isn't reloaded each > time, but it seems like those scripts should execute more quickly. Am I > off base, or is that amount of time usual for those generate, etc., > scripts? > > Performance of the Rails application itself seems to be okay (I'm > running through WEBrick at the moment) but not blindingly fast. > > Thanks again for any help. I'm sorry I can't be much help, but its definitely something wrong with your system. Running a "ruby script\generate" for me takes only a few seconds on my WinXP SP2 that is a 1.5GHz AMD Athlon. Curt