Skip to content

Specialized method to map over an ArrayPartition? #140

@jonniedie

Description

@jonniedie

map over an ArrayPartition is slower than mapping over the inner partitions and reconstructing an ArrayPartition. I typically use something like:

partition_map(f, array::ArrayPartition) = ArrayPartition(map(partition -> map(f, partition), array.x))
partition_map(f, array) = map(f, array)

Would it be worth making this the default for map over a single ArrayPartition?

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