Skip to content

Create ArrayList with initial sizes where possible#6450

Open
dlmarion wants to merge 2 commits into
apache:2.1from
dlmarion:array-list-initial-sizes
Open

Create ArrayList with initial sizes where possible#6450
dlmarion wants to merge 2 commits into
apache:2.1from
dlmarion:array-list-initial-sizes

Conversation

@dlmarion

Copy link
Copy Markdown
Contributor

Where possible set the initial size of the ArrayList when creating it to avoid the expense of the resize operation (new list creation and copy).

Where possible set the initial size of the ArrayList
when creating it to avoid the expense of the resize
operation (new list creation and copy).
@dlmarion dlmarion added this to the 2.1.5 milestone Jun 29, 2026
@dlmarion dlmarion self-assigned this Jun 29, 2026
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.

1 participant