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

[Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll #102

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

MaxXSoft
Copy link
Collaborator

[Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll

Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.

Testing: CI testing

Reviewers: lingjun-cg, yuleil

Issue: #101

…tructor and putAll

Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.

Testing: CI testing

Reviewers: lingjun-cg, yuleil

Issue: dragonwell-project#101
@MaxXSoft MaxXSoft requested review from yuleil and lingjun-cg August 30, 2024 08:38
@MaxXSoft MaxXSoft changed the title [Backport] 8333396: Use StringBuilder internally for java.text.Format.* formatting [Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll Aug 30, 2024
@CLAassistant
Copy link

CLAassistant commented Aug 30, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@lingjun-cg lingjun-cg left a comment

Choose a reason for hiding this comment

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

LGTM

@MaxXSoft
Copy link
Collaborator Author

MaxXSoft commented Sep 5, 2024

Thanks for the review!

@MaxXSoft MaxXSoft merged commit 745c198 into dragonwell-project:master Sep 5, 2024
90 of 91 checks passed
@MaxXSoft MaxXSoft deleted the backport-8322149 branch September 5, 2024 08:43
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.

4 participants