Parallelism in Python

后端 未结 5 975
星月不相逢
星月不相逢 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:17

    There are many packages to do that, the most appropriate as other said is multiprocessing, expecially with the class "Pool".

    A similar result can be obtained by parallel python, that in addition is designed to work with clusters.

    Anyway, I would say go with multiprocessing.

提交回复
热议问题