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

Consider using ArrayDeque when minimum supported Java version permits it #1

Open
markslater opened this issue Apr 25, 2024 · 1 comment

Comments

@markslater
Copy link
Contributor

When the minimum supported Java version becomes 8, instances of java.util.Stack and java.util.ArrayList, where used as a queue, should be considered for replacement with java.util.ArrayDeque, for improved performance, especially as limits are approached.

@markslater
Copy link
Contributor Author

Bear in mind that ArrayDeque doesn't override Object.equals.

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

No branches or pull requests

1 participant