Skip to content

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?

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