RFC: caching in CHKInventory
John Arbash Meinel
john at arbash-meinel.com
Fri Oct 3 07:04:39 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
...
>> Will implementing caching in CHKInventory mean
>> there are two layers caching the same data?
>
> Kindof. consider a three-node map: root, leaf1, leaf2, the cache in the
> Map level will have the three nodes; maybe parsed, or maybe as bytes.
> The CHKInventory cache would have the actual InventoryEntry objects
> looked up by the client.
>
It seems reasonable to me, to keep the InventoryEntries you've looked
up, rather than parsing them again.
You'll run into a bit of double caching, at the tuple, and then at the
object layer. But I would guess it is still worthwhile.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjltfcACgkQJdeBCYSNAAOxAgCeLn1lCymg54qDLTlW8+u7eGZq
EqYAoK17VLLbDr0V1P0X3d1j3JchqcY4
=Ylbf
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list