|
|
|
|
|
by maweki
1952 days ago
|
|
I think the efficiency then hinges on the distribution of your slowness. Is there a slow mapping step for some elements? Then it should be fine having them all near each other. All fast-mapped values before and after can be reduced in the time the slow data is mapped. Only if somehow every second value is slowly mapped you have to wait for reduce to even start. If your reduce is slow for some inputs, its better to have those inputs near each other, as all consecutive values before and after can be reduced during that time. And if every step is somewhat constant time, I don't think reordering (that's basically the same as combining random elements instead of consecutive ones) the input does anything. |
|