frellan
05/23/2018, 6:58 PMList
. At the end of each iteration I add this List
to a List<List>
.
Now, instead of running this concurrently which I am now, I want to split this up and give it to a couple “workers” I guess. Each worker calculate some stuff and then respond back with the List
or alternatively a List<List>
that I can then later flatmerge into a bigger List<List>
. How do one do this with courutines as fast as possible? Run iterations in parallel and collect the combined result essentially, I am having trouble understanding if there even is a performance gain here.