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: 9.0) #13817

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

Unit Test Results

   766 files  ±0     766 suites  ±0   23m 10s ⏱️ +3s
5 720 tests ±0  5 668 ✔️ ±0  52 💤 ±0  0 ±0 
5 746 runs   - 2  5 693 ✔️  - 2  53 💤 ±0  0 ±0 

Results for commit ebeea1b. ± Comparison against base commit b6b8d64.

@mshabarov mshabarov merged commit ce63f1f into 9.0 May 20, 2022
@mshabarov mshabarov deleted the cherry-pick-13746-to-9.0-1652967644886 branch May 20, 2022 06:14
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 22.0.16.

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