Skip to content

Single.GetHashCode should be marked AgressiveInlining #13055

Closed
dotnet/coreclr
#25633
@billwert

Description

@billwert

A change (dotnet/coreclr#18645) affected the inlining decision for Single.GetHashCode. Double.GetHashCode is marked AgressiveInlining, and so should Single.

This surfaces as a perf regression in one of our tests for Vector2 and Vector3.

Method Toolchain Mean
GetHashCodeBenchmark netcoreapp2.2 2.336 ns
GetHashCodeBenchmark netcoreapp3.0 4.509 ns

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions