~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml8.py

  • Committer: John Arbash Meinel
  • Date: 2008-12-10 17:47:26 UTC
  • mto: This revision was merged to the branch mainline in revision 3912.
  • Revision ID: john@arbash-meinel.com-20081210174726-7e0jy7j5kmq20alx
Add some actual timings, supporting why we use a FIFOCache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
        file_id = elt_get('file_id')
366
366
        revision = elt_get('revision')
367
367
        # Check and see if we have already unpacked this exact entry
 
368
        # Some timings for "repo.revision_trees(last_100_bzr_revs)"
 
369
        #   unmodified  4.1s
 
370
        #   using lru   3.5s
 
371
        #   using fifo  2.9s
 
372
        #   lru._cache  2.8s
 
373
        # Note that a cache of 10k nodes is more than sufficient to hold all of
 
374
        # the inventory for the last 100 revs.
368
375
        key = (file_id, revision)
369
376
        try:
370
377
            # We copy it, because some operatations may mutate it