Skip to content

Conversation

@ToddGrun
Copy link
Contributor

Very heavily inspired by Roslyn's implementation

I needed the IA.Builder version of this for local changes, but separated this out into a separate PR.

@ToddGrun ToddGrun requested review from a team as code owners July 23, 2025 18:33
if (all)
{
all = false;
for (var j = 0; j < i; j++)
Copy link
Member

Choose a reason for hiding this comment

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

Is there any benefit to setting the builder capacity here, to avoid resizing in this loop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. We are mid loop here so don't really know what an appropriate size would be. Additionally, this pooledbuilder is likely already large enough, so it doesn't seem worth the effort to try and make this any smarter in that regard.

@ToddGrun ToddGrun merged commit 2c9fd5d into dotnet:main Jul 23, 2025
11 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 23, 2025
@RikkiGibson RikkiGibson modified the milestones: Next, 18.0 P1 Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants