You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should remove these caches, where possible, and instead just use typeof(XX) directly inline as needed. This will allow the JIT to see that the code is using runtime Type instances, and it can optimize the code if possible.
In DataContractSerialization we have a few places where we are caching
typeof(XX)
into staticType
variables. For example:runtime/src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/Globals.cs
Lines 47 to 78 in 855e296
We should remove these caches, where possible, and instead just use
typeof(XX)
directly inline as needed. This will allow the JIT to see that the code is using runtime Type instances, and it can optimize the code if possible.See #42824 (comment).
The text was updated successfully, but these errors were encountered: