Parallelism in Python

后端 未结 5 999
星月不相逢
星月不相逢 2021-01-07 17:19

What are the options for achieving parallelism in Python? I want to perform a bunch of CPU bound calculations over some very large rasters, and would like to parallelise th

5条回答
  •  既然无缘
    2021-01-07 18:09

    Depending on how much data you need to process and how many CPUs/machines you intend to use, it is in some cases better to write a part of it in C (or Java/C# if you want to use jython/IronPython)

    The speedup you can get from that might do more for your performance than running things in parallel on 8 CPUs.

提交回复
热议问题