[MERGE] Re-order the packs during fetch

John Arbash Meinel john at arbash-meinel.com
Mon Nov 10 04:39:20 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached patch changes the fetch logic slightly. After we have
determined/transmitted the revisions, we know what pack files those
revisions are in. Which means we also know what pack files the
inventories and texts are in. The existing code keeps looking in all
pack indexes for the inventories and texts.

This patch just changes it, so that after we read revisions, we sort the
packs so that the interesting ones are put at the beginning of the list.

In my testing, this helps a lot when we are transmitting just a small
amount of changes, that tend to be localized in certain packs. For
example, updating my bzr.1.9 branch with 1 new revision. The new code
still reads a lot of .rix info to find what revisions to transmit, but
then reads very little .iix and .tix because everything is in the first
pack it looks for.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkXuvgACgkQJdeBCYSNAAMIIwCg03h3c8QZfuzZKqo3VDpkViWY
QxgAoIqVmvXPttrGibTTl4Uf6DfvdvxO
=I4dU
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pack_ordering.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081109/03380114/attachment-0001.diff 


More information about the bazaar mailing list