Skip to content

Determine how to maximally elide intermediate allocations in the spectral broadcasting code #124

Open
@jakebolewski

Description

@jakebolewski

@simonbyrne mentioned that under some circumstances with StaticArrays:

function apply_slab()
    out = MArray{}...
    ....
    return SMatrix(out)
end

will not heap allocate the temporary intermediate array if the compiler can infer the lifetime of the mutable array pointer. It doesn't look like that optimization is currently always triggering and needs to be further investigated. In general we probably need to re-think slab allocation optimization under the new operator structure.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions