A recent performance trace ([AB#1938540])(https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1938540) shows 50GB allocations coming from splitting the string used by GetNamedFields in the call to GetTypeByMetadataName. I noticed that GetNamedFields does not keep track of types it has already resolved, so it seems likely to be a significant contributing factor to this performance issue.
|
yield return (name ?? "", GetTypeName(xmlType, compilation, caches), accessModifier); |
A recent performance trace ([AB#1938540])(https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1938540) shows 50GB allocations coming from splitting the string used by
GetNamedFieldsin the call toGetTypeByMetadataName. I noticed thatGetNamedFieldsdoes not keep track of types it has already resolved, so it seems likely to be a significant contributing factor to this performance issue.maui/src/Controls/src/SourceGen/CodeBehindGenerator.cs
Line 374 in 97b21b7