Slow log

John Arbash Meinel john at arbash-meinel.com
Tue Dec 18 22:32:14 GMT 2007


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

Micah Elliott wrote:
> Hi.  I'm a bzr newbie, but trying to get a feel for it, hoping to
> adopt.
> 
> I'm walking through the User Guide, and I've done the following
> steps to use the bzr repo itself as a test model.
> 
>     $ cd tmp
>     $ bzr init-repo bzr-repo
>     $ bzr branch http://bazaar-vcs.org/bzr/bzr.dev bzr.dev
>     $ cd bzr.dev
>     $ date >mde
>     $ bzr add mde
>     $ bzr ci -m 'added a date file'
>     $ bzr log mde
>     <7 seconds later, the log msg>
> 
> Why is a simple command like log taking so long?  Is it having to
> look at the original branch source for some reason?  I wouldn't
> have expected it to be a network operation.  diff and commit are
> snappy.  And now that I've got a few commits to that file it's up
> to 12 seconds, even with '-r -1'.
> 
> I'm using a pretty recent installed version 1.0rc1.  The machine
> I'm doing this on is unloaded and not a slouch.
> 

Known bug:
https://bugs.launchpad.net/bzr/+bug/172975

The new format is a bit slower when dealing with whole-ancestry graphs, but
much faster when dealing with partial ancestry. There are several places where
we used whole-ancestry because it was easier in the past. We're trying to clean
them up.

You can use the associated branch which should make 'bzr log' reasonably
faster. (For my machine it was 2-5x faster.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHaEptJdeBCYSNAAMRAmB2AJ0eRCosPYEn3LF0PV3M67yIadEd1QCgsBis
pWmUe79jikeTjdTqWE/+JSg=
=WP6b
-----END PGP SIGNATURE-----



More information about the bazaar mailing list