multiprocess or threading in python?

后端 未结 8 1875
我在风中等你
我在风中等你 2020-12-01 02:31

I have a python application that grabs a collection of data and for each piece of data in that collection it performs a task. The task takes some time to complete as there i

8条回答
  •  没有蜡笔的小新
    2020-12-01 02:44

    If you can easily partition and separate the data you have, it sounds like you should just do that partitioning externally, and feed them to several processes of your program. (i.e. several processes instead of threads)

提交回复
热议问题