KEMBAR78
Disable networking in XML resolver in AOT compilers by MichalStrehovsky · Pull Request #89489 · dotnet/runtime · GitHub
Skip to content

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.
@MichalStrehovsky MichalStrehovsky marked this pull request as ready for review July 26, 2023 06:25
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