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: cache form remapping to avoid per-chunk workload #998

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Oct 18, 2023

Replaces #997 with a PR that exclusively caches the remapped form.

In the original dask-awkward refactoring PR, I treated form remapping as a cheap operation that could be performed multiple times. However, it appears that this was too strong an assumption, and incidentally brings other consequences when performed at worker time, not just at scheduler time.

This PR caches the form remapping, changing our private interface to store the remapping information rather than its factory.

@agoose77
Copy link
Collaborator Author

@lgray can you check coffea against this PR to confirm no regressions?

@lgray
Copy link
Contributor

lgray commented Oct 19, 2023

@agoose77 yep looks good on my side.

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

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

This looks good; I was in favor of the intent of #997 but wanted @agoose77 to review it and this is the result of that. This looks like a clean refactor of the idea of caching remapped Forms, so let's go! If this is no longer changing, we can merge it.

@jpivarski
Copy link
Member

Last touched 12 hours ago, I guess it's ready. I'll update to main to re-run the tests and enable auto-merge.

@jpivarski jpivarski enabled auto-merge (squash) October 19, 2023 17:52
@jpivarski jpivarski merged commit 6de861a into main Oct 19, 2023
19 checks passed
@jpivarski jpivarski deleted the agoose77/fix-cache-remapping branch October 19, 2023 18:03
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.

3 participants