On Thu, Nov 02, 2006 at 09:43:30AM +0900, Chad Burt wrote: > Hi folks, > I'm working on my first ruby/rails project and have run into my first > major problem. > My application uses a web api for a scientific database and I am trying > to download a very large file(150mb) using Net:HTTP.post_form. This > operation is turning out to be very slow. > > Net:HTTP is at least 10x slower than using my browser to download this > file on my local network. It also pegs one of my processors while doing > it. > > It seems to have something to do with a "green thread" issue explained > here : > http://headius.blogspot.com/2006_06_01_archive.html#114996043877111235 It probably has more to do with the buffer size used in Net::HTTP. Check out this thread: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/202223 Hope that helps! -- Aaron Patterson http://tenderlovemaking.com/