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

Speed up the search for chunks to skip deletion for #312

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Aug 6, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes #306

The changes in this PR intends to implement a speedup to avoid an expensive loop for large datasets. We have tests here

def test_find_chunks_per_workers_on_which_to_skip_deletion():

that assert the correctness of the function.

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@awaelchli awaelchli force-pushed the workers-skip-speedup branch from 7459362 to 8b60be2 Compare August 6, 2024 19:09
@awaelchli awaelchli changed the title WIP: Speed up the search for chunks to skip deletion for Speed up the search for chunks to skip deletion for Aug 6, 2024
@awaelchli awaelchli marked this pull request as ready for review August 6, 2024 19:42
@awaelchli awaelchli requested a review from tchaton as a code owner August 6, 2024 19:42
Copy link
Collaborator

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

awesome find :)

@awaelchli awaelchli force-pushed the workers-skip-speedup branch from a6331a4 to 6db1f00 Compare August 7, 2024 00:31
@tchaton tchaton merged commit 428752d into main Aug 7, 2024
26 checks passed
@tchaton tchaton deleted the workers-skip-speedup branch August 7, 2024 05:27
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.

Streaming from s3 hangs when num_workers > 1
2 participants