svn-import performance analysis
Robert Collins
robertc at robertcollins.net
Wed Dec 3 01:07:29 GMT 2008
On Tue, 2008-12-02 at 19:48 +0100, Jelmer Vernooij wrote:
> I've done some work analysing the critical points in importing from
> Subversion using bzr-svn 0.5.
>
> The main culprits appear to be:
>
> * Inventory.copy() (33%)
> * Repository.add_revision() (49%) (most of which is spent serialising
> the inventory)
>
> While fetching a revision delta, bzr-svn makes a copy of the inventory
> of the parent revision and applies the changes it sees to that. It needs
> the previous inventory as well to figure out renames and the like in
> roundtripped revisions.
>
> I'm at a bit of a loss as to how I can optimize this further. Does
> anybody have any ideas? Also, I would expect CHK inventories to be of
> help here - is that correct?
use apply_inventory_delta (there is a patch on BB with this in it), and
it should be about the same on xml, but much faster on
split-inventories.
-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/20081203/8bbfdea4/attachment.pgp
More information about the bazaar
mailing list