Skip to content

Consider setting name=False in Variable.chunk() #1525

Open
@shoyer

Description

@shoyer

@mrocklin writes:

The following will be slower:

b = (a.chunk(...) + 1) + (a.chunk(...) + 1)

In current operation this will be optimized to

tmp = a.chunk(...) + 1
b = tmp + tmp

So you'll lose that, but I suspect that in your case chunking the same dataset many times is somewhat rare.

See here for discussion: #1517 (comment)

Whether this is worth doing really depends on on what people would find most useful -- and what is the most intuitive behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions