Skip to content

Should dask.delayed cull for optimization? #3735

Closed

Description

@mrocklin

Currently dask.Delayed.__dask_optimize__ is dont_optimize. Do we want to add something simple, like cull?

Activity

  1. mrocklin commented on Jul 7, 2018

    @mrocklin
    MemberAuthor

    I had to work around this here: dask/distributed#2100

  2. mrocklin commented on Jul 7, 2018

    @mrocklin
    MemberAuthor

    It looks like the local scheduler culls by default and the distributed scheduler doesn't.

  3. jakirkham commented on Jul 14, 2018

    @jakirkham
    Member

    Had the impression this was expensive hence why it was not optimized.

    Interesting to hear the Distributed scheduler doesn't cull. Though not surprising in retrospect.

  4. mrocklin commented on Jul 15, 2018

    @mrocklin
    MemberAuthor
  5. jakirkham commented on Jul 17, 2018

    @jakirkham
    Member

    If you have a chance to comment @jcrist, it would be good to hear your thoughts on optimizing delayed collections.

  6. jcrist commented on Jul 18, 2018

    @jcrist
    Member

    Apologies for the delay here (I'm on vacation this week). If other collections cull, I don't see a reason why delayed shouldn't. However, since the local scheduler culls as well, this leads to work being done twice - it might be good to either remove the culling in the local scheduler (may break/slow down people using custom graphs), or add it to the distributed scheduler and remove it from the collections.

  7. mrocklin commented on Jul 18, 2018

    @mrocklin
    MemberAuthor
  8. jakirkham commented on Aug 2, 2018

    @jakirkham
    Member

    Agreed. For people using custom graphs, they know enough that they can add cull. We should just make sure to put this in the changelog so that people are aware they need to take this action.

  9. jcrist commented on Aug 6, 2018

    @jcrist
    Member

    A PR to fix this is at #3856.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions