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

Walk green tree in SyntaxFacts.HasYieldOperations to avoid excessive allocations in reported trace #67221

Merged
merged 5 commits into from
Mar 7, 2023

Conversation

333fred
Copy link
Member

@333fred 333fred commented Mar 7, 2023

This is called for every method (from SourceOrdinaryMethodSymbol) and accounts for 10% of allocations in traces we are looking at. Continuation of #67198.

@333fred
Copy link
Member Author

333fred commented Mar 7, 2023

@dotnet/roslyn-compiler for reviews.

@AlekseyTs
Copy link
Contributor

@333fred Please consider giving this PR and the future merged commit a more descriptive title. What specific helpers are affected etc.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM (commit 4)

@333fred 333fred changed the title Walk green tree to avoid excessive allocations in reported trace Walk green tree in to avoid excessive allocations in reported trace Mar 7, 2023
@333fred 333fred changed the title Walk green tree in to avoid excessive allocations in reported trace Walk green tree in SyntaxFacts.HasYieldOperations to avoid excessive allocations in reported trace Mar 7, 2023
@333fred
Copy link
Member Author

333fred commented Mar 7, 2023

@dotnet/roslyn-compiler @RikkiGibson for a second review.

@333fred 333fred enabled auto-merge (squash) March 7, 2023 19:34
@333fred 333fred merged commit 8770fb6 into dotnet:main Mar 7, 2023
@ghost ghost added this to the Next milestone Mar 7, 2023
@333fred 333fred deleted the greenWalk branch March 7, 2023 23:04
@allisonchou allisonchou modified the milestones: Next, 17.6 P3 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants