~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 4543.2.17.

  • Committer: John Arbash Meinel
  • Date: 2009-07-27 19:11:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4588.
  • Revision ID: john@arbash-meinel.com-20090727191139-bqni7wj0x4eqacjj
Adding a parent inventory cache, and then using add_inventory_by_delta.

We need both the text cache and the inventory cache, because we need the *text* cache
to be able to apply the mpdiff, and we need the *inventory* cache to be able to
compute the deltas.

With both, the time to insert 577 revisions drops to 1m23s.

This is the hit rate:
{'cached parent inv': 459,
 'cached parent text': 564,
 'missing parent inv': 98,
 'missing parent text': 149,
 'parents': 713}

so we have the parent text 564/713 times (pretty good), and the parent inventory
459/557 times, also quite good.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: