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

fix: Avoid potential slow Set#removeAll call in HierarchicalCommunicator (#13746) (CP: 23.0) #13815

Merged
merged 1 commit into from
May 20, 2022

Conversation

vaadin-bot
Copy link
Collaborator

No description provided.

…tor (#13746)

* fix: Avoid potential slow Set#removeAll call in HierarchicalCommunicationController#passivateInactiveKeys

The performance of calling Set#removeAll(List) is dependent on the relative sizes of the Set and List parameter. Replace Set#removeAll with List#forEach(Set::remove) to avoid this.

Fixes #13745

Co-authored-by: Mikhail Shabarov <[email protected]>
Co-authored-by: Soroosh Taefi <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

github-actions bot commented May 19, 2022

Unit Test Results

   951 files     951 suites   45m 10s ⏱️
6 214 tests 6 165 ✔️ 49 💤 0
6 439 runs  6 384 ✔️ 55 💤 0

Results for commit dc2de17.

♻️ This comment has been updated with latest results.

@mshabarov mshabarov merged commit 7bc11b0 into 23.0 May 20, 2022
@mshabarov mshabarov deleted the cherry-pick-13746-to-23.0-1652967628121 branch May 20, 2022 06:14
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 23.0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants