SyntaxFix
Write A Post
Hire A Developer
Questions
HashMap has initial capacity and HashMap's performance very very depends on hashCode that produce underlying objects.
Try to tweak both.