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.1) #13814

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
No Duplication information No Duplication information

@github-actions
Copy link

Unit Test Results

   965 files  ±0     965 suites  ±0   56m 44s ⏱️ - 2m 2s
6 277 tests ±0  6 228 ✔️ ±0  49 💤 ±0  0 ±0 
6 502 runs  ±0  6 447 ✔️ ±0  55 💤 ±0  0 ±0 

Results for commit 9ca456d. ± Comparison against base commit c3101ad.

@mshabarov mshabarov merged commit 1895251 into 23.1 May 20, 2022
@mshabarov mshabarov deleted the cherry-pick-13746-to-23.1-1652967610388 branch May 20, 2022 06:11
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 23.1.0.rc1 and is also targeting the upcoming stable 23.1.0 version.

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