Skip to content

convert method for Any is not ideal #177

@JeffBezanson

Description

@JeffBezanson

These methods:

Base.convert(::Type{Any}, x::CatValue) = x
Base.convert(::Type{S}, x::T) where {S, T <: CatValue} =
    T <: S ? x : convert(S, get(x))

currently cause a lot of recompilation, since they involve converting to Any (which is very common) or potentially many other types. Fortunately this is not a large component of load time from what I can tell, but it would still be nice if we can live without these methods somehow.

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