about summary refs log tree commit diff
path: root/kindlecomicconverter/comic2panel.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@iosphe.re>2017-03-19 07:48:39 +0100
committerPaweł Jastrzębski <pawelj@iosphe.re>2017-03-19 07:48:39 +0100
commit1895aa127dde2eb28864184ef33e6627d97e06a4 (patch)
tree6fea30f4b956dcc067ddff596faf7c19d8af3278 /kindlecomicconverter/comic2panel.py
parentUpdate README.md (diff)
downloadkcc-1895aa127dde2eb28864184ef33e6627d97e06a4.tar.gz
kcc-1895aa127dde2eb28864184ef33e6627d97e06a4.tar.bz2
kcc-1895aa127dde2eb28864184ef33e6627d97e06a4.zip
Decrease memory usage
Diffstat (limited to 'kindlecomicconverter/comic2panel.py')
-rw-r--r--kindlecomicconverter/comic2panel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kindlecomicconverter/comic2panel.py b/kindlecomicconverter/comic2panel.py
index e173575..8618cda 100644
--- a/kindlecomicconverter/comic2panel.py
+++ b/kindlecomicconverter/comic2panel.py
@@ -238,13 +238,13 @@ def main(argv=None, qtGUI=None):
             work = []
             pagenumber = 1
             splitWorkerOutput = []
-            splitWorkerPool = Pool()
+            splitWorkerPool = Pool(maxtasksperchild=10)
             if options.merge:
                 print("Merging images...")
                 directoryNumer = 1
                 mergeWork = []
                 mergeWorkerOutput = []
-                mergeWorkerPool = Pool()
+                mergeWorkerPool = Pool(maxtasksperchild=10)
                 mergeWork.append([options.targetDir])
                 for root, dirs, files in os.walk(options.targetDir, False):
                     dirs, files = walkSort(dirs, files)