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?
Is there any reason why we use
mappedarrayrather than plainreinterprethere?ImageCore.jl/src/ImageCore.jl
Line 124 in edd2078
This adds a few performance overheads to ImageMorphology JuliaImages/ImageMorphology.jl#103 because
pointerof MappedArray is an invalid concept.I notice this is written 4-6 years ago, is it because
reinterpretfor array type was not yet available?