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 weakref that telemetry indicates has no impact at all. #57803

Merged
merged 3 commits into from
Dec 18, 2021

Conversation

CyrusNajmabadi
Copy link
Member

AB experiment shows no significant impact of this code decision on any metrics:

image

We had 450 people reporting around 150k telemetry points. No regressions found.

: new WeakValueSource<AssemblyMetadata>(newMetadata);

if (!_metadataCache.GetOrAddMetadata(key, metadataValueSource, out metadata))
if (!_metadataCache.GetOrAddMetadata(key, new ConstantValueSource<Optional<AssemblyMetadata>>(newMetadata), out metadata))
Copy link
Member Author

Choose a reason for hiding this comment

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

metadata cache still uses RecoverableMetadataValueSource below. so we need to keep this as a ValueSource.

@ghost ghost added the Needs UX Triage label Dec 18, 2021
@CyrusNajmabadi CyrusNajmabadi merged commit 5e8d777 into dotnet:main Dec 18, 2021
@ghost ghost added this to the Next milestone Dec 18, 2021
@sharwell
Copy link
Member

@CyrusNajmabadi Were you expecting this PR to include code changes?

@CyrusNajmabadi
Copy link
Member Author

@CyrusNajmabadi Were you expecting this PR to include code changes?

No. I believe all the changes went in with #58212. Not sure why this didn't close out entirely.

@CyrusNajmabadi CyrusNajmabadi deleted the removeWeakRef branch December 20, 2021 15:55
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
@ryzngard ryzngard added UX Review Not Required UX Review Not Required and removed Needs UX Triage labels Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants