Skip to content

[NET10.0] Performance Regression related to XAML Parsing #31172

@PureWeen

Description

@PureWeen

Description

@StephaneDelcroix Ping @PureWeen for more info

GetElementType invokes GetTypeReference, but in .NET 10, it calls the new GetTypeReferences method, which is an iterator. This change results in the enumeration being executed three times - once for each of the following checks:
if (!types.Any())
if (types.Distinct().Skip(1).Any())
var type = types.Distinct().FirstOrDefault()

Metadata

Metadata

Labels

p/0Current heighest priority issues that we are targeting for a release.s/triagedIssue has been reviewed

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions