From ruby-talk Thu Nov 15 17:42:08 2007 From: "Caleb Tennis" Date: Thu, 15 Nov 2007 17:42:08 +0000 To: ruby-talk Subject: Re: ruby incredibly slow (update 2) Message-Id: <38362.192.168.2.159.1195148038.squirrel () www ! aei-tech ! com> X-MARC-Message: https://marc.info/?l=ruby-talk&m=119514860729421 > 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.