~maxb/bzr-fastimport/tag-on-fi-commit-to-tag-ref

« back to all changes in this revision

Viewing changes to processors/generic_processor.py

  • Committer: Ian Clatworthy
  • Date: 2009-10-21 22:08:48 UTC
  • Revision ID: ian.clatworthy@canonical.com-20091021220848-cicru6mj9dntz1uf
Change the default inventory cache size to 1. For large projects, this reduces memory overhead and also speeds up conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
_DEFAULT_AUTO_PACK = 4
53
53
 
54
54
# How many inventories to cache
55
 
_DEFAULT_INV_CACHE_SIZE = 10
56
 
_DEFAULT_CHK_INV_CACHE_SIZE = 100
 
55
_DEFAULT_INV_CACHE_SIZE = 1
 
56
_DEFAULT_CHK_INV_CACHE_SIZE = 1
57
57
 
58
58
 
59
59
class GenericProcessor(processor.ImportProcessor):
96
96
    * autopack - pack every n checkpoints. The default is 4.
97
97
 
98
98
    * inv-cache - number of inventories to cache.
99
 
      If not set, the default is 100 for CHK formats and 10 otherwise.
 
99
      If not set, the default is 1.
100
100
 
101
101
    * mode - import algorithm to use: default, experimental or classic.
102
102