Overload resolution uses quadratic algorithm to find the best candidate. #13685
Labels
Area-Compilers
Bug
Community
The pull request was submitted by a contributor who is not a Microsoft employee.
Language-C#
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Tenet-Performance
Regression in measured performance of the product from goals.
Milestone
Overload resolution (unary operators, binary operators, and methods) uses a quadratic algorithm to select the best candidate, because it compares every candidate to every other candidate.
There is a simple linear algorithm that gives the same result: scan once to find a possibly best method, and then scan a second time to ensure that it is better than every other candidate.
The text was updated successfully, but these errors were encountered: