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

Use ArrayList copy constructor #7853

Merged
merged 1 commit into from Oct 13, 2021
Merged

Conversation

belugabehr
Copy link
Contributor

Right-size the list copy from the beginning, utilizing the ArrayList copy constructor, instead of creating a backing array of size 10 (default) and then potentially discarding it when copying a list larger than 10 elements.

@elharo elharo merged commit 21873ae into protocolbuffers:master Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants