How to handle extracting lots of Inventories
Robert Collins
robertc at robertcollins.net
Thu Oct 9 00:10:59 BST 2008
On Wed, 2008-10-08 at 16:22 -0400, Aaron Bentley wrote:
> -----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.
I'm looking at immutable inventory entry objects for those read from
CHKInventory; hopefully I'll have all tests passing again today and
there will be something for people to play with.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081009/3c1ec8cc/attachment.pgp
More information about the bazaar
mailing list