You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use Blockwise/map_partitions in various DataFrame join methods #8306
where we're generating a low-level graph that could just be done with map_partitions. Using map_partitions in these scenarios would both speed up graph transmission and allow for blockwise fusion across the operations. Refactoring this simple sorts of graphs should be straightforward.
single_partition_join
hash_join's merge_chunk
stack_partitions should use HighLevelGraph.from_collections instead of merging all of the input graphs
I just realized this is slightly more important than I'd originally thought, because now that low-level optimization is turned off for DataFrames, the only way we get task fusion is through HighLevelGraphs. So even simple linear chains won't be fused, exposing us to root task overproduction (dask/distributed#5223).
For example, this means that a single_partition_join followed by a map_partitions operation may have worse memory performance than doing the join yourself within a map_partitions, since lots of extra single_partition_join outputs can accumulate in memory.
Activity
jrbourbeau commentedon Oct 27, 2021
Thanks for flagging these @gjoseph92. In general, lifting low-level task graphs into high-level graphs is a nice improvement
gjoseph92 commentedon Nov 3, 2021
I just realized this is slightly more important than I'd originally thought, because now that low-level optimization is turned off for DataFrames, the only way we get task fusion is through HighLevelGraphs. So even simple linear chains won't be fused, exposing us to root task overproduction (dask/distributed#5223).
For example, this means that a
single_partition_joinfollowed by amap_partitionsoperation may have worse memory performance than doing the join yourself within amap_partitions, since lots of extrasingle_partition_joinoutputs can accumulate in memory.cc @jrbourbeau @ncclementi
jrbourbeau commentedon Nov 3, 2021
Ah, thanks for digging deeper here @gjoseph92
gjoseph92 commentedon Nov 15, 2021
Thanks for merging @jsignell! Note that these were not done:
Should we re-open this issue, or open new ones for them?
jrbourbeau commentedon Nov 15, 2021
Re-opening to continue to track here. I've also updated the original post to be a checklist instead of a bulleted list (hope that's okay)