overhead when using 'gem install'/'bundle'

pirjsuka's Avatar

pirjsuka

05 Dec, 2011 09:21 AM

I wonder does it make sense to download latest_specs.4.8.gz when doing a 'gem install '? It's 270k gzipped. Why this cannot be worked out by a server side? latest_specs is updated often enough, and it uses 'If-Modified-Since', but is there any statistics of 200/304 response proportion?
It's even worse with bundler, since it always downloads specs.4.8.gz 700k gzipped and prerelease_specs.4.8.gz 35k.

Does this traffic overhead worth some server-side calculation? Yes, this might require moving some gem/bundler logic to server side, but the traffic will almost only consist of the gems itself.

  1. Support Staff 2 Posted by Luis Lavena on 05 Dec, 2011 11:18 AM

    Luis Lavena's Avatar

    Patches are welcome.

  2. Support Staff 3 Posted by Luis Lavena on 07 Apr, 2012 01:44 PM

    Luis Lavena's Avatar

    Latest Bundler uses the newer API endpoints.

    To improve RubyGems itself, please send a pull request to the repository:

    http://github.com/rubygems/rubygems

    We would love to improve and get RubyGems improved, but we need your help.

  3. Luis Lavena closed this discussion on 07 Apr, 2012 01:44 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac