-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[release/7.0] SyntaxValueProvider: avoid performance issue with syntax list containing many items #83743
Conversation
Tagging subscribers to this area: @dotnet/area-extensions-logging Issue DetailsBackport of #83483 to release/7.0 Customer ImpactTestingRiskIMPORTANT: Is this backport for a servicing release? If so and this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.
|
Needs package changes for JSON and Logging |
I'm retargeting this PR to the new Repo maintainers will now be allowed to merge their own servicing PR as long as it meets the requirements:
The new process is described here: runtime/docs/project/library-servicing.md. The infra team will be actively monitoring servicing PRs to ensure all requirements are met and to help with any issues. Let me know if you have any questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OOB package changes look good.
The CI failures are not related and are known issues. Merging this PR. |
Backport of #83483 to release/7.0
/cc @ericstj @cston
Customer Impact
Original issue: dotnet/roslyn#66475
When a source file contains a large array, performance of compilation degraded substantially (customer case was 50x observed build perf). This bug will appear as a regression from GA since this was introduced in the servicing change #72219.
Testing
Test added to cover this scenario.
The repro from dotnet/roslyn#66475 (comment) uses the implementation of
SyntaxValueProvider.ForAttributeWithSimpleName
from Microsoft.CodeAnalysis.dll rather than System.Text.Json.SourceGeneration.dll however, and is not affected by this change in 7.0.Risk
Low. This just adds an additional forward iteration.