Skip to content
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

Cleanup: Delete NGen of T #9263

Merged
merged 3 commits into from
Oct 17, 2023
Merged

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. Types like HashSet<int> are part of the mscorlib native image and it's wasteful to duplicate the code in our binaries. The rest is handled by IBC/OptProf.

Changes Made

Deleted NGen and its uses.

Testing

Experimental insertion to confirm no regressions.

Copy link
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

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

For these cleanups of stale .NET Framework optimization tricks, can we wait to put them in until 17.9 codeflow is unblocked and we can get a good run with optprof to just validate that they're actually useless as we expect?

@ladipro
Copy link
Member Author

ladipro commented Sep 26, 2023

Sure, this can wait. For what it's worth, there is no impact on 17.8 PerfDDRITs (tested both this change and the removal of Pair<TKey, TValue>).

@rainersigwald
Copy link
Member

For these cleanups of stale .NET Framework optimization tricks, can we wait to put them in until 17.9 codeflow is unblocked and we can get a good run with optprof to just validate that they're actually useless as we expect?

We should be in good shape now.

@ladipro
Copy link
Member Author

ladipro commented Oct 12, 2023

@JaynieBai thank you for resolving the conflicts! I'll watch VS insertions to confirm no impact on NGEN-related metrics.

@ladipro
Copy link
Member Author

ladipro commented Oct 17, 2023

No regressions in the experimental insertion. This is good to go.

@JaynieBai JaynieBai merged commit 2016d60 into dotnet:main Oct 17, 2023
8 checks passed
MichalPavlik pushed a commit that referenced this pull request Oct 17, 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. Types like HashSet<int> are part of the mscorlib native image and it's wasteful to duplicate the code in our binaries. The rest is handled by IBC/OptProf.

Changes Made
Deleted NGen 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.

4 participants