~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

  • Committer: Andrew Bennetts
  • Date: 2009-08-05 02:37:11 UTC
  • mfrom: (4589 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4608.
  • Revision ID: andrew.bennetts@canonical.com-20090805023711-1mu01azkgbrw4fl1
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
# We are caching bytes so len(value) is perfectly accurate
61
61
_page_cache = lru_cache.LRUSizeCache(_PAGE_CACHE_SIZE)
62
62
 
 
63
def clear_cache():
 
64
    _page_cache.clear()
 
65
 
63
66
# If a ChildNode falls below this many bytes, we check for a remap
64
67
_INTERESTING_NEW_SIZE = 50
65
68
# If a ChildNode shrinks by more than this amount, we check for a remap