Skip to content

Make replace boolean check_inferred with something that allows configuable small unions #283

@oxinabox

Description

@oxinabox

occured to me during JuliaDiff/ChainRules.jl#717
that there are like 3 states we really care about:

  1. Doesn't infer at all, so infers to Any or some UnionAll or abstract type
  2. Infers down to a small union of <4 types, so the small union optimization kicks in
  3. Infers down to a single concrete type

The current check_inferred boolean doesn't allow us to distinguish case 1 from case 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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