Skip to content

Conversation

frankmcsherry
Copy link
Member

This PR introduces the DistributorPact<B> which wraps a B: FnOnce(usize) -> impl Distributor<C>. Or, at least when it does, then it implements ParallelizationContract, which is a fast path from writing a distributor, writing an appropriate usize based constructor, and getting out a parallelization contract.

I also organized pact.rs a bit with modules; I hope it is cleaner now. And I added a default empty implementation to Distributor::relax which I hope is ok.

@frankmcsherry
Copy link
Member Author

Confirmed that this works with columnar.rs in differential, and the main outcome was deleting a bunch of code and imports that this logic handles instead.

@frankmcsherry frankmcsherry merged commit 474bac1 into TimelyDataflow:master Sep 16, 2025
7 checks passed
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.

1 participant