如何减少DASK数组映射块的执行时间?

时间:2020-07-28 18:48:23

标签: arrays dask dask-distributed

我使用numba njit编写了函数,然后编写了在迭代循环中使用它们的总函数。(例如,运行5次迭代)

最后,我使用dask array.map_blocks映射了dasc数组的所有块之间的总函数。

但是计算(即.compute的计算结果)仍然很耗时。

有什么办法可以减少它?

谢谢。

1 个答案:

答案 0 :(得分:0)

我建议您通读有关了解性能的文档:https://docs.dask.org/en/latest/understanding-performance.html