Uh oh!
There was an error while loading. Please reload this page.
[release/7.0] SyntaxValueProvider: avoid performance issue with syntax list containing many items - #83743
Conversation
ghost
commented
Mar 21, 2023
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.
|
ericstj
commented
Mar 21, 2023
Needs package changes for JSON and Logging |
carlossanlop
commented
Mar 28, 2023
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. |
carlossanlop
left a comment
There was a problem hiding this comment.
OOB package changes look good.
tarekgh
commented
Apr 4, 2023
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.ForAttributeWithSimpleNamefrom 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.