Skip to content

Conversation

ladipro
Copy link
Member

@ladipro ladipro commented Sep 25, 2023

Context

The sole purpose of introducing the type seems to have been silencing a legacy code analyzer rule. The rule does not exist anymore / has not been brought over to Roslyn (dotnet/roslyn-analyzers#722) and it's now hurting performance, if anything. We seem to be using primarily instantiations where both TKey and TValue are reference types, which will pick up the __Canon, __Canon instantiation from the mscorlib native image. The rest is handled by IBC/OptProf.

Changes Made

Deleted Pair<TKey, TValue> and its uses.

Testing

Experimental insertion to confirm no regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants