Skip to content

Optimize generic MethodInfo for Func<T1, T2, TResult> #4838

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

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

sharwell
Copy link
Contributor

@sharwell sharwell commented Feb 14, 2020

Builds on #4836

@harishsk
Copy link
Contributor

@sharwell Have we merged the previous related PRs? Is this ready to come out of draft?

@sharwell sharwell marked this pull request as ready for review March 23, 2020 23:01
@sharwell sharwell requested a review from a team as a code owner March 23, 2020 23:01
internal abstract class FuncMethodInfo3<T1, T2, TResult> : FuncMethodInfo<T1, T2, TResult>
{
private ImmutableDictionary<(Type, Type, Type), MethodInfo> _instanceMethodInfo;

Copy link
Contributor

Choose a reason for hiding this comment

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

Some classes have this ImmutableDictionary. Some don't. Can you please help me understand the difference?

Copy link
Contributor Author

@sharwell sharwell Mar 24, 2020

Choose a reason for hiding this comment

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

In all cases, it's a cache for MakeGenericMethod (so it's only included in classes that define MakeGenericMethod)

Copy link
Contributor

@harishsk harishsk left a comment

Choose a reason for hiding this comment

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

:shipit:

@harishsk harishsk merged commit ceba29f into dotnet:master Apr 4, 2020
@sharwell sharwell deleted the faster-calls-2 branch April 4, 2020 00:40
@ghost ghost locked as resolved and limited conversation to collaborators Mar 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants