[RFC] Faster load of full inventory for development6-rich-root?
Aaron Bentley
aaron at aaronbentley.com
Thu Jun 4 14:36:20 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ian Clatworthy wrote:
> Aaron,
>
> Do we have to create the testament_sha by using the iter-changes-by-dir
> order, including both the paths and inventory entries?
I haven't looked at the code in quite some time.
> Or it is
> sufficient for the order to be deterministic and only include the
> inventory entries?
For a given testament format, the order of entries must be preserved.
> If the latter is sufficient, I can skip the path
> calculations, hence the children lookups, by using iter_just_entries()
> and sorting by file-id?
You have to iterate over the whole inventory anyhow. It shouldn't be a
win to skip generating paths.
> A different method for calculating the testament-sha would imply a
> merge-directive format bump. Are there other things you wanted to tweak
> at the same time if we did this?
I'd want to switch to a new bundle format that could be generated from
BBC repositories with less friction. It would also be worth
investigating whether there were alternative validators we could use in
place of testaments.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkonzdAACgkQ0F+nu1YWqI3yHgCfQND+91cE7QbmkBMWaibNQHW5
UxcAnjo85pUYLzsLiVq/9qzbEYlsszED
=KSe2
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list