Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix size regression from enum sorting #79845

Merged
merged 4 commits into from
Dec 23, 2022

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

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
…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