[MERGE] Only loop graph.iter_ancestry once when running "bzr log FILE"

Aaron Bentley aaron at aaronbentley.com
Tue Sep 9 04:53:50 BST 2008


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

Gary van der Merwe wrote:
> I thought this was going to increase the speed of "bzr log FILE" alot,
> but it only made it a bit faster. I did not realize that the loading
> of the graph is cached.
> 
> lifeless said I should still submit.
> 
> Quote from Irc:
> <lifeless>	 the index layer does have a cache of its own, and the
> majority of the cost of traversing is disk io and parsing, yes.
> <lifeless>	 but with a big enough data set, the cache can be
> exhausted, which would lead to duplicate IO

Also, Graph instances will have their own cache via
CachingParentsProvider, and that will not expire for the lifetime of the
Graph.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIxfNO0F+nu1YWqI0RAllwAJ0d5H9VE81q77gfTZTrWrnZ8WQtngCfWshm
UkUgUrtZeXKrrFPwjlgHRYg=
=jbEZ
-----END PGP SIGNATURE-----



More information about the bazaar mailing list