Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

Allocation optimizations from feedback ticket - #6639

Merged
sharwell merged 10 commits into
dotnet:mainfrom
sharwell:pooled-collections
May 25, 2023
Merged

sharwell merged 10 commits into
dotnet:mainfrom
sharwell:pooled-collections

Conversation

@sharwell

Copy link
Copy Markdown

Addresses several allocation issues observed in AB#1815692

@sharwell
sharwell requested a review from a team as a code owner May 18, 2023 20:05
@sharwell
sharwell force-pushed the pooled-collections branch from c781001 to c99db05 Compare May 19, 2023 14:56
@codecov

codecov Bot commented May 19, 2023

Copy link
Copy Markdown

Codecov Report

Merging #6639 (c99db05) into main (2420507) will decrease coverage by 0.01%.
The diff coverage is 90.15%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6639      +/-   ##
==========================================
- Coverage   96.40%   96.40%   -0.01%     
==========================================
  Files        1374     1379       +5     
  Lines      320898   322160    +1262     
  Branches    10390    10452      +62     
==========================================
+ Hits       309362   310573    +1211     
- Misses       9054     9098      +44     
- Partials     2482     2489       +7     


static void OnSymbolStart(
SymbolStartAnalysisContext symbolStartContext,
SymbolStartAnalysisContext context,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it necessary to rename those context parameters? I think the original ones were clearer

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

➑️ We use context as the name of all context parameters to intentionally hide outer parameters with the same name, as they are not valid for use in the nested lambdas.

@sharwell
sharwell merged commit 19e1393 into dotnet:main May 25, 2023
@sharwell
sharwell deleted the pooled-collections branch May 25, 2023 15:44
@github-actions github-actions Bot added this to the vNext milestone May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants