Open tpapp opened 6 years ago
The in memory representation of union bits types is not (and is not supposed to be) stable. However, you can achieve the same performance by an array view type of the appropriate element that uses the same logic (implemented in julia) and that'll keep working if we decide to change the representation.
Revisiting this issue, I am wondering if the representation has stabilized yet. It would be nice to mmap
eg Vector{Union{Missing,Int}}
and similar.
Now that arrays with
Union
of bitstypes elements have an optimized layout, it would be useful if one couldmmap
them. Alternatively, exporting the API that would allow the user tommap
the constituent flag and content vectors, then "assemble" the array, would also be as solution.Cf