Skip to content

reduce allocations in GenerateDepsFile #49638

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Jul 2, 2025

size collections appropriately, reduce the use of Linq, and make frequently-allocated data classes structs instead

Fixes #48814

The following charts are from building src/Cli/dotnet.csproj under the VS profiler.

Before:
image

After:
image

size collections appropriately, reduce the use of Linq, and make frequently-allocated data classes structs instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GenerateDepsFile allocates 25GB of heap on large project
1 participant