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

Compile methods in canon form only #36011

Merged
merged 2 commits into from
May 8, 2020

Conversation

davidwrighton
Copy link
Member

  • The previous logic would compile methods that were not in canonical form
  • These methods would never be used by the runtime, and contributed 70MB to a 170MB composite image

Also a small fix to an assertion so that debug builds work well

- The previous logic would compile methods that were not in canonical form
- These methods would never be used by the runtime, and contributed 70MB to a 170MB composite image
@davidwrighton
Copy link
Member Author

@dotnet/crossgen-contrib

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

Wow, awesome improvement, thanks David!

@EgorBo
Copy link
Member

EgorBo commented May 7, 2020

Does it mean the SDK size will be significantly smaller? (and dotnet publish result)?

@davidwrighton
Copy link
Member Author

@EgorBo, this is an improvement to crossgen2, which is expected to replace crossgen in the future. So, this isn't expected to have an impact on size in the .NET 5 timeframe, as we're not using this tool for any customer scenarios yet.

Copy link
Contributor

@nattress nattress left a comment

Choose a reason for hiding this comment

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

Nice!

@davidwrighton davidwrighton merged commit 1960808 into dotnet:master May 8, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
@davidwrighton davidwrighton deleted the fix_noncanon_compile branch April 20, 2021 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants