Improve SubstitutedMethodSymbol.GetHashCode (#41674)
The changes made in https://github.com/dotnet/roslyn/pull/41123 fix the GetHashCode for SubstitutedMethodSymbol for more nullability scenarios, but end up hashing all generic methods with a non-generic containing type into the same bucket. This can cause large performance regressions for the compiler. This change ensures that substituted symbols which have substitutions equivalent to their original methods' type parameter continue to be equal, but substituted methods with different type substitutions are not considered equal.
Showing
想要评论请 注册 或 登录