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

[Crossgen2] Improve compilation throughput for types with many fields #43195

Merged
merged 3 commits into from
Oct 12, 2020

Conversation

nattress
Copy link
Contributor

@nattress nattress commented Oct 9, 2020

IsLayoutFixedInCurrentVersionBubble is a fairly expensive algorithm and can be called very frequently for the same type during JIT compilation. Store the computed result so future lookups are fast.

Fixes #38259

cc @dotnet/crossgen-contrib

`IsLayoutFixedInCurrentVersionBubble` is a fairly expensive algorithm and can be called very frequently for the same type during JIT compilation. Store the computed result so future lookups are fast.

Fixes dotnet#38259
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.

Looks beautiful, thanks Simon for fixing this so quickly!

nattress and others added 2 commits October 9, 2020 14:08
…ToRunCodegenCompilation.cs

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
@nattress nattress merged commit 1e95768 into dotnet:master Oct 12, 2020
@nattress nattress deleted the FasterFields branch October 12, 2020 19:05
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
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.

CG2: Time out in JIT\Regression\CLR-x86-JIT\V2.0-Beta2\b399444\b399444a
5 participants