Skip to content

Conversation

@MichalStrehovsky
Copy link
Member

Use a specialized comparer instead of Comparer<T>.Default that brings the implementation of IComparable.ComparerTo on everything. Also get rid of the generic virtual method call.

Saves 0.9% on Hello World.

Contributes to #79437.

Use a specialized comparer instead of `Comparer<T>.Default` that brings the implementation of `IComparable.ComparerTo` on everything. Also get rid of the generic virtual method call.
@ghost
Copy link

ghost commented Dec 20, 2022

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

Use a specialized comparer instead of Comparer<T>.Default that brings the implementation of IComparable.ComparerTo on everything. Also get rid of the generic virtual method call.

Saves 0.9% on Hello World.

Contributes to #79437.

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

…tion/Runtime/General/ReflectionCoreCallbacksImplementation.cs
@MichalStrehovsky MichalStrehovsky merged commit 8d3070f into dotnet:main Dec 23, 2022
@MichalStrehovsky MichalStrehovsky deleted the enumsize branch December 23, 2022 05:35
@ghost ghost locked as resolved and limited conversation to collaborators Jan 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants