Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Avoid copying input Array{Union{T, Null}} in DataArray{T} constructor #291

@nalimilan

Description

@nalimilan

We currently make a copy of an Array{Union{T, Null}} input to an Array{T} because the data field of DataArray should be Array{T}. We should use low-level Julia API once available to access the underlying value part of the input as an Array{T} (for isbits types) in an unsafe way, since we know we will never access null entries. See this discussion.

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