From: Roger Pack Date: 2008-09-05T03:01:17+09:00 Subject: Re: TCPSocket#initialize slow on Windows Victor 'Zverok' Shepelev wrote: > ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32_71] > > TCPSocket.new('localhost', 80) takes something like 1.5-2 sec each call. > (Test program only consists of profiling of this line with ruby-prof). > > Can this be a bug or result of my misunderstanding of something > fundamental? > > > Thanks. > > V. Could try require 'resolv-replace' before hand, or using 127.0.0.1 instead of localhost. -=R -- Posted via http://www.ruby-forum.com/.