Python Forum
How to parallelize an 2D array?
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to parallelize an 2D array?
#8
It depends on how much data there is. Starting processes and passing data to and from them is not free, that takes time. So if there isn't a lot of data (like, a LOT), then the simple task of starting a process will slow your program down.

On the other hand, if this was realtime data, that you needed to process constantly, then you could start looking at having two different programs... one that ran all the time, and kept a pool of worker processes, and another that fed it data as that data becomes available. Then you don't have the slowness of spawning processes, as they're already running in the pool just waiting for more data.
Reply


Messages In This Thread
How to parallelize an 2D array? - by Felipe - May-10-2017, 07:03 PM
RE: How to parallelize an 2D array? - by Mekire - May-10-2017, 07:08 PM
RE: How to parallelize an 2D array? - by Felipe - May-10-2017, 07:18 PM
RE: How to parallelize an 2D array? - by nilamo - May-10-2017, 09:49 PM
RE: How to parallelize an 2D array? - by Felipe - May-10-2017, 10:15 PM
RE: How to parallelize an 2D array? - by nilamo - May-11-2017, 05:08 AM
RE: How to parallelize an 2D array? - by Felipe - May-11-2017, 01:44 PM
RE: How to parallelize an 2D array? - by nilamo - May-11-2017, 04:57 PM
RE: How to parallelize an 2D array? - by Felipe - May-13-2017, 05:11 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020