From: Bill Kelly Date: 2007-11-16T16:00:08+09:00 Subject: Re: rails incredibly slow (update) From: "Ron Jeffries" > > I believe when InstantRails launches a command prompt, it does the > use_ruby. All that does, actually, is add ruby and mysql to the path. > Ruby is already there, mySql isn't ... which I would think would make > some things not work at all, not work slowly. > > Anyway, rails -v is 5 or 6 seconds even after use_ruby I'm assuming you invoke some particular .rb file to start your whole rails app? (Or, if not, that you can at least find some .rb file on your system that is the main .rb file that starts up rails?) If you haven't already, I'd suggest trying what Caleb suggested: putting: BasicSocket.do_not_reverse_lookup = true at the top of that file. If that doesn't help, I'd suggest trying: require "resolv-replace" at the top of that .rb file. If that doesn't help, I'd suggest adding the trace code I posted yesterday to the top of that .rb file. With the lengthy delays you've been experiencing, I'd imagine the trace code may provide some confirmation as to exactly what code is being executed at the time of the pause. Hope this helps, Bill