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

Remove HasFlag usage as it's particularly slow on netfx #433

Merged
merged 1 commit into from Nov 30, 2023

Conversation

ToddGrun
Copy link
Contributor

HasFlag is boxing the RuntimeImportFlags enum.

Image below is from a trace gathered when opening vs with a up to date MEF cache. IncPats is modified to just include Microsoft.VisualStudio.Composition, which indicates that this boxing is responsible for about 10% of allocations under callstacks including this namespace.

image

Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

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

First rate. Thanks.

@AArnott AArnott merged commit d1f52ba into microsoft:main Nov 30, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants