Remove defensive copies in System.Reflection.MetadataLoadContext#101161
Remove defensive copies in System.Reflection.MetadataLoadContext#101161hamarb123 wants to merge 2 commits intodotnet:mainfrom
System.Reflection.MetadataLoadContext#101161Conversation
|
Can you highlight specific examples where this is causing meaurably worse performance / worse code generation? |
Looking at the definition of |
This is probably not that bad really, so I'll close it, since the preference is to keep |
|
Thanks |
These fields being marked
readonlycauses 25 uses to create a defensive copy in total (since it's generic, it has no such things asreadonlymembers, meaning every access requires a defensive copy). Removing thereadonlyshould resolve these.