From: Chad Burt Date: 2006-11-15T07:34:20+09:00 Subject: Re: Net:HTTP performance downloading large files > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/202223 Thanks. Found this file: and changed def rbuf_fill timeout(@read_timeout) { #changed by cburt @rbuf << @io.sysread(1024) } end to def rbuf_fill timeout(@read_timeout) { #changed by cburt @rbuf << @io.sysread(16384) } end Now downloading a 150MB file takes 25 seconds compared to 21 seconds for straight curl and 40-sum seconds for curl using a popen. The problem now is that I have a web API client that I was going to package into a ruby-gem that would have been easy to install. Now I have to tell people to start hacking the standard library if they want to use it. Uhhg! -- Posted via http://www.ruby-forum.com/.