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

Remove all scheduled splits at once #21634

Closed
wants to merge 1 commit into from
Closed

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Apr 19, 2024

No description provided.

@@ -291,7 +291,7 @@ else if (pendingSplits.isEmpty()) {
// calculate placements for splits
SplitPlacementResult splitPlacementResult = splitPlacementPolicy.computeAssignments(pendingSplits);
splitAssignment = splitPlacementResult.getAssignments(); // remove splits with successful placements
splitAssignment.values().forEach(pendingSplits::remove); // AbstractSet.removeAll performs terribly here.
pendingSplits.removeAll(splitAssignment.values());
Copy link
Member

Choose a reason for hiding this comment

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

it is still quadratic

@wendigo wendigo closed this Apr 21, 2024
@wendigo wendigo deleted the serafin/removeall branch May 24, 2024 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants