Skip to content

rawview: unnecessary MappedArray wrapper on N0f8 arrays #183

@johnnychen94

Description

@johnnychen94

Is there any reason why we use mappedarray rather than plain reinterpret here?

rawview(a::AbstractArray{T}) where {T<:FixedPoint} = mappedarray(reinterpret, y->T(y,0), a)

This adds a few performance overheads to ImageMorphology JuliaImages/ImageMorphology.jl#103 because pointer of MappedArray is an invalid concept.

I notice this is written 4-6 years ago, is it because reinterpret for array type was not yet available?

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