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

Skip parsing types in ILLinkTrim.Descriptors if not needed #79803

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

MichalStrehovsky
Copy link
Member

We should not even be using this parser (#79802). It's surprisingly slow.

This saves about 10% of wallclock time when compiling Hello World (yes, I can't believe my measurements either). We parse the descriptors for the purposes of manifest resources pretty late in the single threaded phase and apparently there's a lot of things to parse that we don't care about.

Cc @dotnet/ilc-contrib

We should not even be using this parser (dotnet#79802). It's surprisingly slow to use this.

This saves about 10% of wallclock time when compiling Hello World (yes, I can't believe my measurements either). We parse the descriptors for the purposes of manifest resources pretty late in the single threaded phase.
@ghost
Copy link

ghost commented Dec 19, 2022

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Issue Details

We should not even be using this parser (#79802). It's surprisingly slow.

This saves about 10% of wallclock time when compiling Hello World (yes, I can't believe my measurements either). We parse the descriptors for the purposes of manifest resources pretty late in the single threaded phase and apparently there's a lot of things to parse that we don't care about.

Cc @dotnet/ilc-contrib

Author: MichalStrehovsky
Assignees: -
Labels:

area-NativeAOT-coreclr

Milestone: -

…ase.cs

Co-authored-by: Ben Adams <thundercat@illyriad.co.uk>
@Suchiman
Copy link
Contributor

This saves about 10% of wallclock time when compiling Hello World

image

@MichalStrehovsky MichalStrehovsky merged commit 0579209 into dotnet:main Dec 19, 2022
@MichalStrehovsky MichalStrehovsky deleted the manifestblock branch December 19, 2022 22:34
@ghost ghost locked as resolved and limited conversation to collaborators Jan 19, 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.

4 participants