Skip to content

Use broadcasting instead of convert() for disallowmissing() #135

Description

@kescobo

From discussion on Slack with @pdeffebach, broadcasting seems to be a bit faster

using Missings, BenchmarkTools

v = Vector{Union{Float64, Missing}}(rand(10000));

@benchmark disallowmissing($v)

@benchmark Float64.($v)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions