[PATCH 2 of 2] hgext: add a new packed repository extension, packrepo

Greg Ward greg at gerg.ca
Sat Jun 30 13:51:34 CDT 2012


On 27 June 2012, Bryan O'Sullivan said:
> # HG changeset patch
> # User Bryan O'Sullivan <bryano at fb.com>
> # Date 1340818576 25200
> # Node ID 989483d028d1881eb775815c9d66361f9bed4d06
> # Parent  080b8d275cfe8f355fbe778a175a1c4cf1e08083
> hgext: add a new packed repository extension, packrepo
> 
[...]
> +This extension is aimed at a narrow use case: the performance of "hg
> +clone --uncompressed", of a repository that contains many revlogs, over
> +a fast LAN or WAN.
> +
> +In these cases, the performance of "hg clone --uncompressed" can be
> +limited by the seek rate of the client's disk.  Use of this extension
> +can improve performance by a factor of 10.  (Please be sure to measure
> +performance in your own environment before you decide to use this
> +extension.)

No kidding! I've been meaning to investigate this for ages now, and
just never got around to it. Thank you! I'm totally surprised that the
bottleneck is on the client... but considering the crappy I/O
performance of the machines we put on every developer's desk, and the
fact that our server is (I think) configured for pretty good I/O, I
should not be surprised.

One stupid question just to clarify: this extension is meant to be
used on *client* machines, right? That seems clear, but it wouldn't
hurt to state it explicitly in the docstring.

       Greg
-- 
Greg Ward                                http://www.gerg.ca/
Shape shifting reptilians are about to achieve complete control over
this planet!


More information about the Mercurial-devel mailing list