[Rubygems-developers] Slow install with specific versions numbers

Rick DeNatale rick.denatale at gmail.com
Wed Dec 9 17:51:35 EST 2009


On Wed, Dec 9, 2009 at 5:22 PM, Luis Lavena <luislavena at gmail.com> wrote:
> On Wed, Dec 9, 2009 at 7:10 PM, Rick DeNatale <rick.denatale at gmail.com> wrote:
>> I'm finding that some gems are taking forever to install today, in
>> particular it seems that when I specify a particular version number
>>
>> gem install webrat --version "= 1.2.16'
>> gem install -v1.2.3 test-unit
>>
>> There is a looooong pause before any output.
>>
>> Might this have something to do with the move/forwarding to gemcutter?
>>  And btw http://gemcutter.org is first on my list of sources.
>
> webrat 1.2.16 is not in the gemcutter repository.
>
> http://gemcutter.org/gems/webrat
>
> I noticed that certain gems and its dependencies range 600K or even
> bigger, like Rails at 2MB
> (and not talking about the active or action dependencies)
>
> The silent nature of RubyGems make things looks slower.
>
> How slow is if you try to grab the gem directly? can you curl/wget one
> particular gem?
>
> wget http://gems.rubyforge.org/gems/name-version.gem

Actually, that 1.2.16 version wasn't for webrat but for another gem
loaded by rake gems:install in a rails app,

It was actually webrat version 0.5.1

→ time curl -Lv http://gems.rubyforge.org/gems/webrat-0.5.1.gem > /dev/null
* About to connect() to gems.rubyforge.org port 80 (#0)
*   Trying 72.4.120.124... connected
* Connected to gems.rubyforge.org (72.4.120.124) port 80 (#0)
> GET /gems/webrat-0.5.1.gem HTTP/1.1
> User-Agent: curl/7.19.4 (universal-apple-darwin10.0) libcurl/7.19.4 OpenSSL/0.9.8k zlib/1.2.3
> Host: gems.rubyforge.org
> Accept: */*
>
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0< HTTP/1.1 302 Found
< Date: Wed, 09 Dec 2009 22:48:13 GMT
< Server: Apache/2.2.3 (Red Hat) mod_ssl/2.2.3
OpenSSL/0.9.8e-fips-rhel5 Phusion_Passenger/2.2.5
< X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5
< X-Rack-Cache: stale, invalid
< Location: http://s3.amazonaws.com/gemcutter_production/gems/webrat-0.5.1.gem
< Content-Length: 0
< Status: 302
< Vary: Accept-Encoding
< Content-Type: text/html
<
  0     0    0     0    0     0      0      0 --:--:-- --:--:--
--:--:--     0* Connection #0 to host gems.rubyforge.org left intact
* Issue another request to this URL:
'http://s3.amazonaws.com/gemcutter_production/gems/webrat-0.5.1.gem'
* About to connect() to s3.amazonaws.com port 80 (#1)
*   Trying 72.21.207.164... connected
* Connected to s3.amazonaws.com (72.21.207.164) port 80 (#1)
> GET /gemcutter_production/gems/webrat-0.5.1.gem HTTP/1.1
> User-Agent: curl/7.19.4 (universal-apple-darwin10.0) libcurl/7.19.4 OpenSSL/0.9.8k zlib/1.2.3
> Host: s3.amazonaws.com
> Accept: */*
>
  0     0    0     0    0     0      0      0 --:--:--  0:00:01
--:--:--     0< HTTP/1.1 200 OK
< x-amz-id-2: lkpSV5qvyi2xfi3NDqKSlhIKsWKngpKMs4gth2Vii3OMlKkwLZDpO5PEKQb956YO
< x-amz-request-id: E46FE471C6B52F7D
< Date: Wed, 09 Dec 2009 22:48:15 GMT
< Last-Modified: Thu, 20 Aug 2009 02:42:17 GMT
< ETag: "ddfce18d2c01af30a60157b6e5b2868a"
< Content-Type: binary/octet-stream
< Content-Length: 5293056
< Server: AmazonS3
<
{ [data not shown]
100 5169k  100 5169k    0     0  34101      0  0:02:35  0:02:35
--:--:-- 43847* Connection #1 to host s3.amazonaws.com left intact

* Closing connection #0
* Closing connection #1
curl -Lv http://gems.rubyforge.org/gems/webrat-0.5.1.gem > /dev/null
0.08s user 0.17s system 0% cpu 2:35.27 total

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale


More information about the Rubygems-developers mailing list