Skip to content

Add fast path to into_dimensionality #905

Closed

Description

@bluss

There are (generic) situations where we use into_dimensionality::<D>() as a no-op, we just don't have a proof in the type system that the two dimensions are equal. The method should have a TypeId (or equivalent based on a new Dimension method) based fast-path that basically transmutes input dimensions to output dimensions, to avoid copying and make the (generated) code simpler.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions