Skip to content

AbstractArrays in broadcast falls back to slow objectid when checking mightalias #28178

@KristofferC

Description

@KristofferC

See the comment at #25890 (comment). and e.g. JuliaArrays/UnsafeArrays.jl#3.

mightalias is undocumented but yet it is sorely needed to overload in case one wants to have good performance when broadcasting with custom arrays.
Otherwise, a fallback objectid function is called which is slow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]broadcastApplying a function over a collectionperformanceMust go faster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions