Skip to content

Retain existing array in RepeatedField.Clear#10508

Merged
fowles merged 1 commit intoprotocolbuffers:mainfrom
jskeet:clear-retain
Sep 7, 2022
Merged

Retain existing array in RepeatedField.Clear#10508
fowles merged 1 commit intoprotocolbuffers:mainfrom
jskeet:clear-retain

Conversation

@jskeet
Copy link
Copy Markdown
Contributor

@jskeet jskeet commented Sep 7, 2022

Fixes #7828.

(Also tweaks the comment for Capacity.)

Fixes protocolbuffers#7828.

(Also tweaks the comment for Capacity.)
Copy link
Copy Markdown

@amanda-tarafa amanda-tarafa left a comment

Choose a reason for hiding this comment

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

LGTM

@jskeet jskeet requested a review from fowles September 7, 2022 13:20
@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Sep 7, 2022

@fowles: Please could you approve and merge (assuming this does indeed seem reasonable to you)?

@fowles fowles merged commit ad6cd54 into protocolbuffers:main Sep 7, 2022
@CodeBlanch
Copy link
Copy Markdown

@jskeet Hey I don't see this change in latest NuGet release tag (3.21.7) are you able to provide any hint on when it might drop?

@jskeet
Copy link
Copy Markdown
Contributor Author

jskeet commented Oct 1, 2022

@CodeBlanch: I would expect it to be in 3.22.0; I don't have a timeframe for that.

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.

[C#] Enable pooling of messages with large RepeatedFields

5 participants