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 ArrayList with ArrayDeque in Bucket class #2

Closed
mvogiatzis opened this issue Sep 12, 2013 · 0 comments
Labels

Comments

@mvogiatzis
Copy link
Owner

@mvogiatzis mvogiatzis commented Sep 12, 2013

ArrayDeque is more optimal than ArrayList when removing elements from from Bucket class.
https://github.com/mvogiatzis/first-stories-twitter/blob/master/src/main/java/entities/Bucket.java

An ArrayList shifts all elements upon removal.

@mvogiatzis mvogiatzis closed this in a5572cd Nov 8, 2013
mvogiatzis added a commit that referenced this issue Nov 8, 2013
Fixes #2 - Replaced ArrayList with a queue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.