Should reinterpret return the parent array if the eltype is unchanged?

Looks like this is fixed on 1.6:

julia> summary(ra)
"1000-element Vector{Complex{Int64}}"

julia> @btime sum($a);
  285.829 ns (0 allocations: 0 bytes)

julia> @btime sum($ra);
  284.117 ns (0 allocations: 0 bytes)
2 Likes