How to handle extracting lots of Inventories

Aaron Bentley aaron at aaronbentley.com
Wed Oct 8 21:22:26 BST 2008


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

John Arbash Meinel wrote:
> Also, the "page-based" inventory that Robert is working on might get
> this implicitly, if he does end up caching the InventoryEntry objects,
> and they get shared between Inventory classes.

It seems pretty safe to cache file inventory entries.  For a given
revision-id and file-id, the attributes should not change.  That would
allow you to cut down on object creation.

For directories, I'd still recommend paranoia, since their "children"
attribute may be updated without updating their revision-id.

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

iD8DBQFI7RaB0F+nu1YWqI0RAt9HAJ0bEs6Hz1AdZpftEcs/Ju6boe3teACcC7IC
e0eK1J7IDyD/90moLAIE7A4=
=W8gm
-----END PGP SIGNATURE-----



More information about the bazaar mailing list