[RFC][PATCH 0/4] Speed improvement in fetch/clone

Robert Collins robertc at robertcollins.net
Thu Dec 15 04:18:58 GMT 2005


On Sat, 2005-12-10 at 19:15 +0100, Goffredo Baroncelli wrote:
> Hi all,
> 
> the aim of the following four patches is to improve the performance to the
> fetch/clone code. In order to obtain that, I introduced a new function in the Branch
> class: the file_involved( ) function [Patch #1].
> This function returns a set of the file_id which are involved in changes.
> 
> On the basis that:
> a)every line of the inventory refers to an one entry
> b)every line is a chunk of data of the weave format
> the function file_involved( ) parses the raw data of inventory.weave in order to 
> detect which file_id(s) are involved in the changes of a range of revisions.
> 
> This information is used by the clone/fetch function in order to download the weave(s)
> without 
> a) expanding all the inventory entries or..
> b) .. lists the file presents under .bzr/weave/... which is impossible in
>   some transport ( as http ).
> If you want to know the gain see my previous email ( 
> http://lists.ubuntu.com/archives/bazaar-ng/2005q4/005587.html )
> 
> The patches are four:
> 1) the file_involved( ) function
> 
> The next three depend on the first
> 2) a test case of the file_involved function ( as suggest by  
> Robert Collins )
> 3) the patch of the fetch code
> 4) the patch of the clone code

It would be nice to have code that is changed + the tests for it in the
same patches :)..

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/20051215/5657f95d/attachment.pgp 


More information about the bazaar mailing list