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 HashMap concrete type by Map interface #270

Merged
merged 3 commits into from
Feb 19, 2020

Conversation

jpbempel
Copy link
Member

@jpbempel jpbempel commented Feb 14, 2020

Replace all usages of HashMap as a type of field or var by Map Interface
allowing to change implementation if required

LinkedList are heavier regarding memory footprint, we prefer to void
its usage by just replacing by ArrayList.
I have changed also the type to use List interface as it will be
easier to change implementation if required.
Some lists are also pre-sized when possible.
@jpbempel jpbempel requested a review from a team February 14, 2020 08:38
@jpbempel jpbempel changed the title Replace HashMap concrete type to Map interface Replace HashMap concrete type by Map interface Feb 14, 2020
@truthbk truthbk added this to the 0.35.0 milestone Feb 18, 2020
Copy link
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

somewhat a superset of #268 but looks good to me! ✨

@jpbempel jpbempel merged commit dfb1758 into DataDog:master Feb 19, 2020
@jpbempel jpbempel deleted the replaceHashMap branch February 19, 2020 08:07
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.

2 participants