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

Use Java Collections framework #769

Open
pki-bot opened this issue Oct 2, 2020 · 1 comment
Open

Use Java Collections framework #769

pki-bot opened this issue Oct 2, 2020 · 1 comment
Milestone

Comments

@pki-bot
Copy link

pki-bot commented Oct 2, 2020

This issue was migrated from Pagure Issue #198. Originally filed by edewata (@edewata) on 2012-06-01 21:31:04:


Vector and Hashtable are legacy code. They are not deprecated but in most cases they can be replaced with other subclasses of List and Map that are better for the job.

Vector and Hashtable are synchronized, but most of the time we don't need synchronization (or already synchronized somewhere else), so using ArrayList or HashMap could improve the performance. If we need to add/remove the elements in a list many times we can use a LinkedList with small performance penalty. If we need to maintain the order of elements in a map we can use LinkedHashMap.

@pki-bot pki-bot added this to the UNTRIAGED milestone Oct 2, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 2, 2020

Comment from edewata (@edewata) at 2017-02-27 14:00:58

Metadata Update from @edewata:

  • Issue assigned to vakwetu
  • Issue set to the milestone: UNTRIAGED

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