Skip to content

Making getproperty, getindex and iterate more type stable for TangentsΒ #606

Open
@ToucheSir

Description

@ToucheSir

Constprop is rarely able to pierce the function barrier and get through to the underlying type. This would especially help when the backing is a tuple or NamedTuple.

I think the main question is how to do this. @inline as seen in https://github.com/JuliaLang/julia/blob/master/base/tuple.jl is one option. Base.@constprop :aggressive is another that Diffractor currently employs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Structural TangentRelated to the `Tangent` type for structured (composite) values

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions