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

Set AsyncLazy.SuppressRecursiveFactoryDetection to true #9624

Merged

Conversation

drewnoakes
Copy link
Member

@drewnoakes drewnoakes commented Dec 17, 2024

This avoids the overhead associated with the type's re-entrancy prevention in cases where we the code cannot call itself.

See microsoft/vs-threading#1265 for more information.

@lifengl proposed this improvement as part of #9623. One occurrence is addressed in that PR. Others are here in this PR.

Microsoft Reviewers: Open in CodeFlow

This avoids the overhead associated with the type's re-entrancy prevention in cases where we the code cannot call itself.

See microsoft/vs-threading#1265 for more information.
@drewnoakes drewnoakes requested a review from a team as a code owner December 17, 2024 03:44
@drewnoakes drewnoakes requested a review from Copilot December 17, 2024 06:19
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/Debug/DebugProfileEnumValuesGenerator.cs:28

  • The use of '[]' to initialize an empty array is incorrect. It should be 'Array.Empty()'.
? []

@drewnoakes drewnoakes added the Tenet-Performance This issue affects the "Performance" tenet. label Dec 17, 2024
@drewnoakes drewnoakes merged commit 8f52554 into dotnet:main Dec 18, 2024
5 checks passed
@drewnoakes drewnoakes deleted the suppress-recursive-factory-detection branch December 18, 2024 23:09
@dotnet-policy-service dotnet-policy-service bot added this to the 17.12 milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tenet-Performance This issue affects the "Performance" tenet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants