re-added support for ghosts in newformat

Robert Collins robertc at robertcollins.net
Tue Oct 4 22:16:27 BST 2005


On Tue, 2005-10-04 at 14:09 -0500, John A Meinel wrote:

> Since the new format prefers an uncompressed revision store, and the
> Compressed format is the old format, how about we update
> "CompressedTextStore" to handle both compressed and uncompressed (so we
> can read the old format), and then we leave the new format as using
> TextStore for now, which means that it doesn't need to do the round-trip
> stuff.

Another way to do it would be to make the default format that the branch
wants paramterisable.

i.e. TextStore(transport, compressed_is_default=True)

=> tries .gz first then without.

TextStore(transport, compressed_is_default=False)

=> tries without .gz, then with.

For a homogenous store, with the right default, this will be optimal.
For a heterogenous store, or one with the wrong default, you'll pay the
probe cost.. but bringing in some async stuff will mean you are only
paying the request cost, not the latency cost, for many operations.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051005/117b8282/attachment.pgp 


More information about the bazaar mailing list