28. 動画生成部 2
? 処理時間の短縮はCPUパワーに頼った
? EC2の強いインスタンスサイズと
ThreadPoolExecutorでの並列処理
? これだけで並列処理できるのは素敵
?
????
? 当日はc5.4xlargeで10並列処理
?
137個の画像を10分程度で動画化
with ThreadPoolExecutor(max_workers=WOKER_NUM, thread_name_pre
fi
x="thread") as executor:
for m in local_img_
fi
les:
print(m)
executor.submit(create_movie_parts, m)