Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dont set init capacity of HashMap to 0 #1751

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

daniilzimin4
Copy link
Contributor

@daniilzimin4 daniilzimin4 commented Nov 25, 2024

Dont set init capacity of HashMap to 0

Set init capacity depends of size of collection to avoids unnecessary reallocations.
@daniilzimin4 daniilzimin4 changed the title Set init capacity depends of size of collection Dont set init capacity of HashMap to 0 Nov 25, 2024
@yegor256
Copy link
Owner

yegor256 commented Dec 1, 2024

@daniilzimin4 what is the motivation for this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants