diff options
author | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-10-22 08:08:48 +1000 |
---|---|---|
committer | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-10-22 08:08:48 +1000 |
commit | cc78e9b91533ccad9d8e7127b410069088392781 (patch) | |
tree | 0dcd41046e0c87bf22507f94d68f8204fa73b448 | |
parent | d677f809ecb0ecef2fedaf9b0078b8e8fefea091 (diff) | |
download | python-fastimport-cc78e9b91533ccad9d8e7127b410069088392781.tar.gz |
Change the default inventory cache size to 1. For large projects, this reduces memory overhead and also speeds up conversion.
-rw-r--r-- | processors/generic_processor.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index 131780c..3b67fdb 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -52,8 +52,8 @@ _DEFAULT_AUTO_CHECKPOINT = 10000 _DEFAULT_AUTO_PACK = 4 # How many inventories to cache -_DEFAULT_INV_CACHE_SIZE = 10 -_DEFAULT_CHK_INV_CACHE_SIZE = 100 +_DEFAULT_INV_CACHE_SIZE = 1 +_DEFAULT_CHK_INV_CACHE_SIZE = 1 class GenericProcessor(processor.ImportProcessor): @@ -96,7 +96,7 @@ class GenericProcessor(processor.ImportProcessor): * autopack - pack every n checkpoints. The default is 4. * inv-cache - number of inventories to cache. - If not set, the default is 100 for CHK formats and 10 otherwise. + If not set, the default is 1. * mode - import algorithm to use: default, experimental or classic. |