Skip to content

Fix type stability issues for getindex with symbols #9

@jonniedie

Description

@jonniedie
Collaborator

Constant propagation works for Axis indexing but not for ComponentArray indexing. Not sure what to do here. I’m wrapping the symbolic indexes immediately in a Val and passing them into a function that calls a @generated function. fastindices is a workaround that I’d rather not have to have.

Activity

self-assigned this
on Apr 30, 2020
jonniedie

jonniedie commented on May 20, 2020

@jonniedie
CollaboratorAuthor

Linked is a MWE to reproduce the problem with a much simpler version of ComponentArrays. I’m stumped on this one.

https://discourse.julialang.org/t/help-me-understand-constant-propagation/38822/5?u=jonniedie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jonniedie

      Issue actions

        Fix type stability issues for getindex with symbols · Issue #9 · SciML/ComponentArrays.jl