Closed
Description
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 |