Commit 0c4456f3 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

ProcessPoolExecutor strikes back

parent 3668cdaf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ import re
import sys
import json
from pathlib import Path
from concurrent.futures import ThreadPoolExecutor, as_completed
from concurrent.futures import ProcessPoolExecutor, as_completed

sys.path.append("./ivas-processing-scripts")
from ivas_processing_scripts.audiotools.wrappers.bs1770 import get_loudness
@@ -180,7 +180,7 @@ def main(args):

    progressbar_update(0, total, width=50)

    with ThreadPoolExecutor() as executor:
    with ProcessPoolExecutor(16) as executor:
        # Submit all tasks
        futures = {
            executor.submit(process_output_file, *task): task[0] for task in tasks