[MERGE] New log formats controlling the display of merge revisions

Robert Collins robertc at robertcollins.net
Fri Jan 16 02:12:57 GMT 2009


On Fri, 2009-01-16 at 10:16 +0900, Stephen J. Turnbull wrote:
> Why bzr
> takes so much time I don't know, but I have to suspect that that DAG
> information is stored all over kingdom come.

 python -m timeit -s 'from bzrlib.repository import Repository'
'r=Repository.open("bzrrepo");r.lock_read();len(r.revisions.get_parent_map(r.revisions.keys()));r.unlock()'
10 loops, best of 3: 1.88 sec per loop

If you could run this against e.g. your emacs repo I'd appreciate that.

This isn't quite the same as walking the dag, because we're just loading
everything in.

Doing a spider operation:
 python -m timeit -s 'from bzrlib.branch import Branch'
'b=Branch.open("bzrrepo");r=b.repository; g=r.get_graph();
r.lock_read();
s=g._make_breadth_first_searcher([b.last_revision()]);list(s);r.unlock()'
10 loops, best of 3: 2.47 sec per loop


-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: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090116/522cf8db/attachment.pgp 


More information about the bazaar mailing list