[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    Re: ruby incredibly slow (update 2)
From:       "Caleb Tennis" <caleb () aei-tech ! com>
Date:       2007-11-15 17:42:08
Message-ID: 38362.192.168.2.159.1195148038.squirrel () www ! aei-tech ! com
[Download RAW message or body]

> Just a SWAG, but. time ruby -rsocket -e 'p Socket.gethostbyname("127.0.0.1")'
>
> is doing a reverse-"DNS" lookup. Might windoze be confused by having
> 127.0.0.1 map to three different hostnames in the hosts file?

At least on Linux, when I've had big slowdowns like this, throwing in

BasicSocket.do_not_reverse_lookup = true

made things run much faster.

I think we've discussed this issue on the list before, too.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic