-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Speed up typeof #85962
Speed up typeof #85962
Conversation
Saw it in BasicMinimalApi profiles. The ultimate fix is to make `RuntimeType` a frozen object, but this will do for now. Also made a bit of progress in eradicating `EETypePtr` while I'm touching this.
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsSaw it in BasicMinimalApi profiles. The ultimate fix is to make Also made a bit of progress in eradicating Cc @dotnet/ilc-contrib
|
@@ -103,21 +103,6 @@ public static class Nullable | |||
{ | |||
ArgumentNullException.ThrowIfNull(nullableType); | |||
|
|||
#if NATIVEAOT |
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.
This is not necessary now that we don't do any reflection blocking.
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.
Nice!
The unhandled exception handling code needs to always reset the scratch block, since it'll put it into a protected region. Some helpers changed signatures in dotnet/runtime#85962.
The unhandled exception handling code needs to always reset, the scratch block, since it'll put it into a protected region. Some helpers changed signatures in dotnet/runtime#85962.
The unhandled exception handling code needs to always reset the scratch block, since it'll put it into a protected region. Some helpers changed signatures in dotnet/runtime#85962.
Saw it in BasicMinimalApi profiles. The ultimate fix is to make
RuntimeType
a frozen object, but this will do for now.Also made a bit of progress in eradicating
EETypePtr
while I'm touching this.Cc @dotnet/ilc-contrib