Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

compact encoding of union variants #87

@soc

Description

@soc

Make unions more space-efficient after #8 is implemented, ideally avoiding the need for additional space to store bits that denote the variant of a union value.

For class-based unions:

  • consider the lower bits of the reference itself
  • figure out what to do with union variants that are themselves unions

For value-based unions:

  • employ niche-oriented encoding
  • investigate passing variant info out-of-band (status flags (Swift appears doing something like that), additional reg, ...)

For mixed unions:

  • figure out what the actual rules and requirements are

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions