[Rubygems-developers] Network traffic conservation strategies
chad at chadfowler.com
Sun Mar 28 20:44:03 EST 2004
On 28/3/2004, at 8:32 PM, Richard Kilmer wrote:
> On Mar 28, 2004, at 9:42 AM, Gavin Sinclair wrote:
>> Compressed streams would definitely be a great start. Using squid
>> would be excellent as well, although it could be a little tricky.
>> I have no idea about either of them :)
> $ curl http://gems.rubyforge.org/yaml > yaml
> $ irb
> irb > require 'zlib'
> irb > File.read('yaml').size
> => 49078
> irb > Zlib::Deflate.deflate(File.read("yaml"), 9).size
> => 8964
> So, we get an 82% size savings by having the yaml file compressed on
> We could still have both, perhaps:
> http://gems.rubyforge.org/yaml (49078)
> http://gems.rubyforge.org/yaml.bin (8964)
I was thinking we should use this:
We can just send "Accept-encoding: gzip" and be prepared to handle
gzip'd output. Should be simple and we don't have to maintain two
separate copies of the yaml.
More information about the Rubygems-developers