Skip to content

Specify initial capacity when creating ArrayList in SpringFactoriesLoader #30271

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

Closed
wants to merge 3 commits into from

Conversation

wizard4wu
Copy link
Contributor

When the ArrayList is created firstly, provides the capacity for the list.

It can reduce unnecessary space.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Apr 3, 2023
@sbrannen sbrannen changed the title Init ArrayList capacity size Specify initial capacity when creating ArrayList in SpringFactoriesLoader Apr 3, 2023
@sbrannen sbrannen self-assigned this Apr 3, 2023
@sbrannen sbrannen added type: task A general task in: core Issues in core modules (aop, beans, core, context, expression) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 3, 2023
@sbrannen sbrannen added this to the 6.0.8 milestone Apr 3, 2023
sbrannen added a commit to sbrannen/spring-framework that referenced this pull request Apr 3, 2023
@sbrannen sbrannen closed this in 7fcbc86 Apr 3, 2023
@sbrannen
Copy link
Member

sbrannen commented Apr 3, 2023

This has been merged into main.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants