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

Disable networking in XML resolver in AOT compilers #89489

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

MichalStrehovsky
Copy link
Member

Use the switch introduced in #84169. The AOT compilers don't need this. Speeds up the build by a couple seconds because we no longer compile garbage. Shrinks size of ilc.exe from 15.2 MB to 11.1 MB.

One the Native AOT side, this will only kick in once we update the SDK used to build the repo to something that has this (RC1?). On the crossgen2 side this takes effect immediately.

Cc @dotnet/ilc-contrib

Use the switch introduced in dotnet#84169. The AOT compilers don't need this. Speeds up the build by a couple seconds because we no longer compile garbage. Shrinks size of ilc.exe from 15.2 MB to 11.1 MB.

One the Native AOT side, this will only kick in once we update the SDK used to build the repo to something that has this (RC1?). On the crossgen2 side this takes effect immediately.
Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

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

Nice.

<RunAnalyzers>false</RunAnalyzers>
</PropertyGroup>

<Import Project="../AotCompilerCommon.props" />
Copy link
Member

Choose a reason for hiding this comment

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

Is it OK that crossgen2 is now using <TieredCompilation>false</TieredCompilation> when it wasn't before?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't ship this way (it ships on top of NativeAOT), but this affects inner loop. Disabling tiering is going to be a improvement for inner loop: #83112

@MichalStrehovsky MichalStrehovsky merged commit 055a9f1 into dotnet:main Jul 27, 2023
@MichalStrehovsky MichalStrehovsky deleted the xmlnetwork branch July 27, 2023 03:31
@ghost ghost locked as resolved and limited conversation to collaborators Aug 26, 2023
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.

3 participants