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

Replace LinkedList with ArrayList #13016

Merged
merged 4 commits into from Nov 24, 2022
Merged

Replace LinkedList with ArrayList #13016

merged 4 commits into from Nov 24, 2022

Conversation

needmorecode
Copy link
Contributor

Motivation:

ArrayList is more efficient than LinkedList in the space cost.
ArrayList is almost as efficient as LinkedList in the time cost of tail insertion, which are the practical use cases of the two lists I modified.

Modification:

Replace LinkedList with ArrayList.

Result:

Less space cost.

@normanmaurer normanmaurer added this to the 4.1.86.Final milestone Nov 24, 2022
@normanmaurer normanmaurer merged commit 3bff0be into netty:4.1 Nov 24, 2022
@normanmaurer
Copy link
Member

@needmorecode Thanks a lot!

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.

None yet

2 participants