Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor input bubble checks to work in non-composite scenarios #73350

Conversation

davidwrighton
Copy link
Member

@davidwrighton davidwrighton commented Aug 4, 2022

  • Input bubble checks for making sure that the input bubble is valid are not currently processed for non-composite scenarios
  • Refactor them so that they are not n^2 in cost, and are handled for both composite and non-composite scenarios

Fixes #71131

- Input bubble checks for making sure that the input bubble is valid are not currently processed for non-composite scenarios
- Refactor them so that they are not n^2 in cost, and are handled for both composite and non-composite scenarios
@davidwrighton davidwrighton marked this pull request as ready for review August 6, 2022 00:23

static LPCUTF8 GetKey(const SimpleNameToExpectedMVIDAndRequiringAssembly& e) { return e.SimpleName; }

static BOOL Equals(LPCUTF8 a, LPCUTF8 b) { return strcmp(a, b) == 0; } // Use a case senstive comparison here even though
Copy link
Member

Choose a reason for hiding this comment

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

Nit - typo (senstive -> sensitive)

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

Beautiful optimization and general improvement, thank you!

@davidwrighton davidwrighton merged commit 760babb into dotnet:main Aug 8, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 8, 2022
@davidwrighton davidwrighton deleted the refactor_inputbubble_checks_to_work_in_non_composite_scenarios branch April 13, 2023 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breaking R2R (crossgen2) input bubble promise results leads to corrupted execution
2 participants