Skip to content

Conversation

@StephaneDelcroix
Copy link
Contributor

@StephaneDelcroix StephaneDelcroix requested a review from a team as a code owner September 15, 2025 17:53
Copilot AI review requested due to automatic review settings September 15, 2025 17:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the XAML type lookup performance by eliminating redundant enumeration operations. The change addresses issue #31172 by reducing multiple iterations over the same collection to a single enumeration with materialization.

  • Materializes the type collection early by calling .Distinct().ToList() instead of repeatedly enumerating
  • Replaces LINQ operations (Any(), Skip(1).Any(), FirstOrDefault()) with direct list operations for better performance
  • Maintains the same logical behavior while reducing computational overhead

@StephaneDelcroix StephaneDelcroix added this to the .NET 10.0-rc2 milestone Sep 15, 2025
@PureWeen PureWeen moved this from Todo to Ready To Review in MAUI SDK Ongoing Sep 16, 2025
@PureWeen PureWeen added the p/0 Work that we can't release without label Sep 16, 2025
@StephaneDelcroix
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@StephaneDelcroix
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@github-project-automation github-project-automation bot moved this from Ready To Review to Approved in MAUI SDK Ongoing Sep 16, 2025
@StephaneDelcroix StephaneDelcroix merged commit 5ad904f into net10.0 Sep 17, 2025
148 checks passed
@StephaneDelcroix StephaneDelcroix deleted the dev/stdelc/fix31172 branch September 17, 2025 08:42
@github-project-automation github-project-automation bot moved this from Approved to Done in MAUI SDK Ongoing Sep 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

p/0 Work that we can't release without

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants