~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-29 21:35:05 UTC
  • mfrom: (4576 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4577.
  • Revision ID: john@arbash-meinel.com-20090729213505-tkqsvy1zfpocu75w
Merge bzr.dev 4576 in prep for 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
 
 
66
63
# If a ChildNode falls below this many bytes, we check for a remap
67
64
_INTERESTING_NEW_SIZE = 50
68
65
# If a ChildNode shrinks by more than this amount, we check for a remap