~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

  • Committer: Martin Pool
  • Date: 2009-09-14 01:48:28 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4688.
  • Revision ID: mbp@sourcefrog.net-20090914014828-ydr9rlkdfq2sv57z
Merge news

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