"bzr log" slow with revid
John Arbash Meinel
john at arbash-meinel.com
Sat Jul 17 13:34:18 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Eli Zaretskii wrote:
> Why is it that "bzr log -c REVNO" is lightning fast (less than 1 sec
> on my 6-year old Windows XP box), whereas "bzr log -c revid:ID" for an
> ID that points to the same REVNO takes 25 seconds? The revision in
> question is on mainline, so --include-merges and -n0 are not involved.
>
>
Using "bzr --lsprof-file revid.callgrind log -c REVID" and sending us
that info would help us to understand what is going on.
I'm pretty sure that fundamentally the issues is that the log code
expects to get revnos and not revision ids. (we sort of need both), and
so the code that looks up a revno for a given revision_id is being extra
slow. For example, it might load the whole ancestry when it only needs
to step back a couple of steps, etc.
Also, is this revision-id recent or old?
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxBo0oACgkQJdeBCYSNAANTFwCeN7MrD6HALCmp7Ds4HVS3niXV
o6gAnAnAmt9te7mgn6lTqpvTW26D2huB
=R/Uh
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list