How to handle extracting lots of Inventories
aaron at aaronbentley.com
Wed Oct 8 21:22:26 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar