-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Use a cached delegate for method group conversion #5835
Copy link
Copy link
Closed
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersFeature RequestTenet-PerformanceRegression in measured performance of the product from goals.Regression in measured performance of the product from goals.help wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-CompilersFeature RequestTenet-PerformanceRegression in measured performance of the product from goals.Regression in measured performance of the product from goals.help wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Misc
The method group conversion today always creates a fresh delegate instance.
Instead, for a method group conversion from a static method we should cache it and only create it once, like we do for non-capturing lambda expressions.
[The C# language spec is being modified to permit this]