Skip to content

[Experiment][WIP] Perform culling optimization before fuse_roots - #8965

Draft
rjzamora wants to merge 1 commit into
dask:mainfrom
rjzamora:cull-before-fuse_roots
Draft

rjzamora wants to merge 1 commit into
dask:mainfrom
rjzamora:cull-before-fuse_roots

Conversation

@rjzamora

Copy link
Copy Markdown
Member

While working on a PR to move Dask-DataFrame's from_delayed to Blockwise @ian-r-rose pointed out that fuse_roots
will always materialize a Blockwise layer when root-fusion is successful
. My intuition is that this is probably okay if we move things around so that culling is performed while the Layer is still Blockwise. This PR makes this small change for dask.array and dask.dataframe.

@ian-r-rose

Copy link
Copy Markdown
Collaborator

xref #8560, which didn't get a lot of discussion at the time (apologies @gjoseph92!)

@rjzamora

Copy link
Copy Markdown
Member Author

xref #8560, which didn't get a lot of discussion at the time (apologies @gjoseph92!)

Oops! Completely missed that PR @gjoseph92 - Good catch! It looks like from_delayed is one of the fuse-roots applications that you were curious about (optimize_blockwise doesn't capture Delayed dependencies, but fuse_roots does). I don't think there is any reason to call cull again after fuse_roots, but I certainly don't understand the optimization completely :)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants