1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

Decrease memory usage

This commit is contained in:
Paweł Jastrzębski
2017-03-19 07:48:39 +01:00
parent 4b670f3754
commit 1895aa127d
2 changed files with 7 additions and 5 deletions

View File

@@ -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)