Skip to content

InlineArrayAttribute should allow for vectorization #103712

Closed
@AaronRobinsonMSFT

Description

@AaronRobinsonMSFT

Default implementations of Equals() and GetHashCode() now throw. It is expected for them to be implemented by users. How this was done though, does result in a lost opportunity. See comment below.

This is an unfortunate consequence of throwing.

We'd otherwise be able to treat InlineArray of primitive types as bitwise equatable and allow them to participate in some of the vectorization speedups.

It would be nice if there was a better way to allow users to override the default while still opting their types into bitwise equality support.

Originally posted by @tannergooding in #103612 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions