[Rubygems-developers] Detecting server changes

Chad Fowler chad at chadfowler.com
Sat Nov 27 07:12:25 EST 2004

On 27-Nov-04, at 12:41 AM, Austin Ziegler wrote:

> On Fri, 26 Nov 2004 23:51:34 -0500, Jim Weirich <jim at weirichhouse.org> 
> wrote:
>> All of the shortcuts (HEAD, IMS(no) and open-uri/sz) all take 
>> approximately
>> the same amount of time, and all are much faster than downloading the 
>> entire
>> compressed source.
>> Based on that, I don't think there is a strong compeling reason based 
>> on these
>> benchmarks to switch from the open-uri/sz technique that is in use 
>> currently.
>> (although the size technique can fail with non-monotonically 
>> increasing file
>> sizes, in which case the IMS technique looks attractive).
> The reason for changing this is not the performance on the gem list
> command, really, but the performance and load on the server. Be kind
> to the GemHost :)
> Either HEAD or IMS is preferable because of this.

Right.  We're using HEAD now.

Jim, I think you're right about the cache going into users' home 
directories (unless it's writable in the global spot???).  This has 
been bugging me too.


More information about the Rubygems-developers mailing list