Skip to content

Remove weakref that telemetry indicates has no impact at all.#57803

Merged
CyrusNajmabadi merged 3 commits intodotnet:mainfrom
CyrusNajmabadi:removeWeakRef
Dec 18, 2021
Merged

Remove weakref that telemetry indicates has no impact at all.#57803
CyrusNajmabadi merged 3 commits intodotnet:mainfrom
CyrusNajmabadi:removeWeakRef

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

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.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner November 16, 2021 20:33
@ghost ghost added the Area-IDE label Nov 16, 2021
: new WeakValueSource<AssemblyMetadata>(newMetadata);

if (!_metadataCache.GetOrAddMetadata(key, metadataValueSource, out metadata))
if (!_metadataCache.GetOrAddMetadata(key, new ConstantValueSource<Optional<AssemblyMetadata>>(newMetadata), out metadata))
Copy link
Copy Markdown
Contributor 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
Copy Markdown
Contributor

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

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor 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