-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
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.
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsUse a specialized comparer instead of Saves 0.9% on Hello World. Contributes to #79437.
|
...ivate.CoreLib/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs
Outdated
Show resolved
Hide resolved
...ivate.CoreLib/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
...ivate.CoreLib/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
...ivate.CoreLib/src/System/Reflection/Runtime/General/ReflectionCoreCallbacksImplementation.cs
Outdated
Show resolved
Hide resolved
…tion/Runtime/General/ReflectionCoreCallbacksImplementation.cs
Use a specialized comparer instead of
Comparer<T>.Default
that brings the implementation ofIComparable.ComparerTo
on everything. Also get rid of the generic virtual method call.Saves 0.9% on Hello World.
Contributes to #79437.